Pausing Up ~ Down Scroller

A n up-down message scroller that pauses between each message. You can easily configure the width/height, color, and contents of the scroller. Just change the first four variables of the script to do so.

W e have tested the code in IE5.5, IE6.0, Netscape4.08, Opera7.23 and Netscape7.02 . This script worked well in all platforms tested with variations observed in Netscape4.08 and Opera7.23.

D epending on your knowledge of HTML and java scripts, this is an easy, one step copy and paste code with minimal reconfigurations. Just paste the code anywhere in the <BODY> section of your document where you want this effect to appear then reconfigure the background image (if any), background color, links, targets, etc.... See below for where and howto reconfigure the code.

Reconfigurations *

//configure the below five variables to change the style of the scroller
var scrollerdelay='3000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='150px'
var scrollerheight='105px'
var scrollerbgcolor='lightyellow'
//set below to '' if you don't wish to use a background image**
var scrollerbackground='scrollerback.gif'

*    Take particular note that in reconfiguring this script it makes use of the single quote ' mark. Do Not! make the mistake of replacing them with the double quote " or the script will not work!. You will also get "An Undertermined String Constant" Error message and wonder why.

**    Remember, if you are not going to use a background image, set the single quotes '' like so. It may look like a double quote but make no mistake, they are 2 single quote marks right next to each other.

I f you notice in the above example in reference to the:

var scrollerbgcolor='lightyellow'
The script makes use of the word 'lightyellow' and not the HEX code preceded by the #. If you feel more comfortable with HEX codes, feel free to use them instead. (See below) They will work just as well. We have included for your convenience a color chart that displays both words and HEX code also.
Color Chart With Hex & RGB Codes ~ IE & Netscape ]

Use Of HEX Code Example

var scrollerbgcolor='#??????'

N otice that we used the prefix character (#) preceding the 6 digit code. Also notice how they are positioned between the '(single quotes)'. Do Not! change them to double quote marks.

A s silly as it may sound, change the ?????? to a valid HEX code.

We have had people write in asking us why the color does not work. After we examined their source code, we found they used our example of question marks instead of a valid HEX code.

B elow we will show you the last part of the reconfigurations. This involves the use of URL paths and target links. Also the removal of the URL link and make it into just a message,

//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[1]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[2]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[3]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[4]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"

///////Do not edit pass this line///////////////////////

N otice how the use of " and the ' are both incorporated within this section of the script. When you make the reconfigurations be sure to adhere to the format or you will get a scripting error.

Make Link Open In New Browser Window

messages[0]=" <font face='Arial '><a href=' URL Goes Here' target='_blank'>Message Goes Here </a></font>"

S ee the above attribute of target='_blank ' and how we wrote it. This tells the link to open in a new window as opposed to in the same window where you get away from the main page. Be sure to use the single quote ' in this section of script.

Remove URL And Link

T o do this you need to delete the following section of the script for which ever scrolling message you want.

<a href=' URL Goes Here'> You need to remove the </a> also in the ones you do not want link(s). In other words it would look like the below with the link removed.

messages[0]=" <font face='Arial '>Message Goes Here</font>"

Add An Image    This is a fully defined image

H ere again you must make use of the single quote ' with your image tag***

***    <img src='Uploaded Image Here' border='0' height='?' width='?' alt='?'>

N ow lets incorporate the above image tag into the script. Remember, you can position the image as a "Stand Alone" or incorpororated with links, etc. For this example, we will incorporate it with a link.

messages[0]= "<font face= 'Arial' ><a href='URL Goes Here '><img src=' Uploaded Image Here' border= '0' height='?' width='?' alt='?'> </a></font> "

A s you can notice in the above example, we did not use the attribute of target='-blank'. You can add this attribute into the link if you want to have it open in a new browser window.

O ne final note on adding or deleting more or less than the default number of scrolling messages. To answer your question in a word, Yes, you can. Just follow the format for numbering the messages. See below:

//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[1]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[2]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[3]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[4]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"
messages[5]="<font face='Arial'><a href='URL Goes Here'>Message Goes Here</a></font>"

A ll you need to do is add another number for more than the default number of [5]. That includes the first entry numbered as Zero [0]
messages[5]

I f you would like to add this effect into your pages, just grab the above link in the scroller or below link and you are there. If you have any problems with this, feel free to contact us.
Get Code Here ]

[ Yahoo! ] options

Search Our Site By Individual letter

A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ G ]  [ H ]  [ I ]  [ J-K ]  [ L ] 
M ]  [ N-O ]  [ P-Q ]  [ R ]  [ S ]  [ T ]  [ U-V ]  [ W ]  [ X-Y-Z ] 

Little Tips Directory

Page 1  ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5  ] [ Page 6  ] [ Page 7  ]

Index Page 1 ] [ Index Page 2 ] [ Index Page 3 ] [ Index Page 4 ] [ Index Page 5 ]
Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ]
Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ]

News Letter Archives ] [ Navigation Page ] [ Archives Of Published Material ]
Link To Us ] [ Alphabet Index ] [ Feedback ] [ On Line Support ] [ FAQ ]
Webmaster Utilities ] [ Casino ] [ Banner Exchange ] [  Advanced Site Search ]

If you are part of the ever growing number of webmasters who enjoy sharing your knowledge with others on web design, join The Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today

This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.

Copyright © Consigliere Ltd., All Rights Reserved. 2001-