//**************************************************
// Button Ticker *
// Date created : 19 Feb, 2002 *
// (c) 2002 Premshree Pillai. All rights reserved. *
// http://www.qiksearch.com *
// [email protected] *
// Visit http://www.qiksearch.com/javascripts.htm *
// for FREE scripts *
// Use freely as long as this message is intact *
//**************************************************
// Location : http://www.qiksearch.com/javascripts/button-ticker.htm
// Ticker messages
var ticker_msg = new Array(
"Welcome to Qiksearch",
"FREE Javascripts",
"Intellisearch Bar NOW!",
"www.qiksearch.com",
"FREE Articles" ); // No comma after last ticker msg
// Ticker URLs
var ticker_url = new Array(
"http://www.qiksearch.com",
"http://www.qiksearch.com/javascripts.htm",
"http://intellisearch.cjb.net",
"http://www.qiksearch.com",
"http://www.qiksearch.com/articles.htm" ); // No comma after last ticker url
function inv_button()
{ if (navigator.appName=="Microsoft Internet Explorer" || (navigator.appName=="Netscape" && navigator.appVersion >= "5"))
{ if (inv_button_flag==0)
{ this.document.qiksearch_ticker.inv_but.value="6"; this.document.qiksearch_ticker.inv_but.title="Tick Down Direction";
inv_button_flag=1;
} else
{ this.document.qiksearch_ticker.inv_but.value="5"; this.document.qiksearch_ticker.inv_but.title="Tick Up Direction";
inv_button_flag=0;
}
} else
{ if (inv_button_flag==0)
{ this.document.qiksearch_ticker.inv_but.value="Down";
inv_button_flag=1;
} else
{ this.document.qiksearch_ticker.inv_but.value="Up";
inv_button_flag=0;
}
}
}
function inv_msg()
{ for(var i=0;i<Math.floor(ticker_msg.length/2);i++)
{
var temp=ticker_msg[i];
ticker_msg[i]=ticker_msg[ticker_msg.length-1-i];
ticker_msg[ticker_msg.length-1-i]=temp;
}
}
function inv_URL()
{ for(var i=0;i<Math.floor(ticker_msg.length/2);i++)
{
var temp=ticker_url[i];
ticker_url[i]=ticker_url[ticker_msg.length-1-i];
ticker_url[ticker_msg.length-1-i]=temp;
}
}
tick();
</script>
<table width="400" align="center" cellspacing="0" cellpadding="0"><tr><td>
<font face="verdana,arial,helvetica" size="-1" color="#000000">
This is a Cross Browser Javascript Button Ticker that ticks a number of messages on a button.You can change the direction in which the message ticks. (i.e the order in which the message ticks).
<br><br>This ticker is very easy to customise. You can add any number of messages and their corresponding URLs. Messages must be added to the array <font face="courier">ticker_msg</font> and the URLs must
be added to the array <font face="courier">ticker_url</font>.
<br><br>This ticker ticks the messages on a button. You can change the style of the button easily.
<br><br>The ticker speed can be changed easily by changing the value of the variable <font face="courier">ticker_speed</font>. (Here it is 1, which means that the message would change every 1 second.)
<br><br>To use this script, you just have to copy the <script> section of the source and paste it wherever you require on your web page.
<br><br><hr style="width:100%; height:1; color:#000000">
<a href="mailto:[email protected]?Subject=Javascripts" class="link">© 2002 Premshree Pillai. All rights reserved.</a>
</font>
</td></tr></table>