Choose a link to get started:ALL NEW!!!Scrolling MarqueesThe BasicsThe BasicsManipulating Text Images Backgrounds Links More Advanced TopicsThe <HEAD> TagTables Forms Frames Lists Advanced TopicsImage MapsCSS - Part 1 CSS - Part 2 CSS - Part 3 CSS - Part 4 Additional TopicsXML Tag FormattingXHTML - Part 1 XHTML - Part 2 |
Notice I said "Internet Explorer Marquees". Unfortunately for all of you Netscape users, this is another one of those topics
that is solely for the Internet Explorer user, but feel free to learn the commands anyway. It adds excitement to your page when viewed through Internet Explorer.
ALIGNThe first attribute is ALIGN. This determines how the scrolling test is aligned vertically with the surrounding text. There are three possible values for this attribute: TOP, MIDDLE, and BOTTOM. The default is MIDDLE. The syntax for using the ALIGN atrribute is shown below: BEHAVIORThe BEHAVIOR attribute determines how the marquee rolls across the screen. There are three possible values for this attribute as well: SCROLL, SLIDE, and ALTERNATE. The default is SCROLL, which starts with the marquee completely off the page and ends with it completely off. SLIDE starts the same way, but starts again when it hits the other end. ALTERNATE causes the marquee to bounce back and forth between the edges. To clarify the exact behavior of each, an example of each is provided below: <MARQUEE BEHAVIOR="slide"> BGCOLORThis attribute should be self-explanatory. It controls what the background color of the marquee is. The color designation can be the word or RGB color codes. The background color of the previous examples for BEHAVIOR is "#000080" DIRECTIONThis determines which direction the marquee scrolls, whether it be to the left or the right, the two possible values for DIRECTION. The default direction is left. An example of each is shown below to show exactly what DIRECTION="left" and DIRECTION="right" mean: <MARQUEE DIRECTION="left"> HEIGHT and WIDTHThe next two topics will discussed together, as they are often used together. The HEIGHT attribute determines the vertical height of the marquee, and the values are in pixels. The WIDTH attribute determines the horizontal width of the marquee, with the value being in pixels or a percentage of the screen. An example of each attribute is shown below: <MARQUEE HEIGHT="100" WIDTH="25%"> HSPACE and VSPACEThese two will also be explained together, but they are a little difficult to explain. They determine the margins on the respective sides of the marquee with respect to the surrounding text or the edge of the page. HSPACE stands for Horizontal-SPACE and is the margin on the left and right sides of the marquee, in pixels. VSPACE stands for Vertical-SPACE and determines the top and bottom margins of the marquee, also in pixels. Here are a few examples: The text here is 35 pixels away.....from the marquee with VSPACE="35" <MARQUEE HSPACE="25" VSPACE="35"> LOOPThe LOOP attribute determines how many times the marquee runs without stopping. The default for BEHAVIOR="scroll" or ="alternate" seems to be infinite, while it is only 1 for BEHAVIOR="slide". The values are in number of runs. To set the marquee to run an infinite number of times, set LOOP="-1". This doesn't always work with BEHAVIOR="slide" so be careful to check how the marquee looks when using "slide" with LOOP. SCROLLAMOUNT, SCROLLDELAY, and TRUESPEEDThese topics are also difficult to explain. SCROLLAMOUNT sets the number of pixels between each roll of text and indirectly sets the speed, the higher the faster. The larger the number, the larger the delay between rolls. SCROLLDELAY determines the speed of the marquee, in terms of the number of milliseconds between each text character. TRUESPEED is used if the SCROLLDELAY is below 60. An example of each is shown below: <MARQUEE SCROLLAMOUNT="100" SCROLLDELAY="35" TRUESPEED> Well, now you have a new weapon to add to your HTML arsenal. Marquees can add great effects to your webpage, but you must also be careful with them. While they look good when used in moderation, be careful not to use too many marquees on the same page, as it makes the page far too busy and an eyesore. Enjoy! |