Many JavaScript masters have scrolling bulletin boards with links written in JavaScript on their homepages. This not only allows more content to be displayed in the limited space on the homepage, but also adds dynamic effects to the homepage, which is pleasing to the eye and makes many people who do not understand JavaScript envious. . In fact, without JavaScript, the same effect can be achieved by using the subtitles <marquee> provided by DHTM, and it is much simpler. Now I will introduce to you the usage of the following subtitles:
Use the <marquee></marquee> tag pair to insert subtitles in the HTML document. Subtitles <marquee> mainly have the following attributes:
align: subtitle text alignment
width: subtitle height
high: subtitle height
direction: text scrolling direction, its value can be right, left, up, down;
behavior: subtitle dynamic effect, its value can be scroll (scrolling), slide (slide), alternating (alternating), the default value is scroll;
scrolldelay: scroll delay time, in milliseconds
scrollamount: scrolling amount, unit pixel.
In addition, you can use attributes such as color, bgcolor, font-size, etc. to modify the subtitle text. The subtitle text is written between the <marquee></marquee> tag pairs. HTML tags can also be inserted into the subtitle text, which allows us to insert hyperlinks into the subtitle text. For better control over the placement of subtitles on the page, it is best to place the subtitles in a table. Here is an example of a scrolling bulletin board with links:
<table border=″0″ cellpadding=″0″ cellspacing=″0″ width=″100%″ height=″80″>
<tr>
<td width=″100%″ height=”77″><marquee direction=”up″ height=”50″ scrollAmount=”2″
style=″COLOR: rgb(100,100,100); FONT-FAMILY: Song Dynasty_GB2312; FONT-SIZE: 9pt″ width=″500″ border=″0″>
Welcome to: <a href=″http://202.200.93.33″>Game Story</a>, our slogan is Just Play
This site includes the following columns:
Web page production teaching: <a href=″jiaocheng/flash/teach.htm″>Flash tutorial</a>, <a href=″jiaocheng/dhtml/dhtml1.htm″>DHTM tutorial</a>, Javascript tutorial, < a href=″jiaocheng/dhtml/aspbase.htm″>Asp tutorial</a>
Mini games: available for local download
Happy little software: It’s very fun. If you want to share good things with your friends, you might as well give them to your friends.
</marquee></td>
</tr>
</table>
In addition, it should be noted that the FrontPage98 editor does not support inserting HTML tags in subtitle text. Therefore, the above code cannot be edited in the web page with the FrontPage98 editor. You can use a text editor to edit it. Hurry up and give it a try!