
Solid, safe website tools.
Whatever your need, Will Bontrager builds powerful software solutions.
If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.
| Author | Message | ||
|---|---|---|---|
| 28Feb02 yesidol |
Subject: Awesome Javasript Analysis:Changing the background & rotating differently Banners every day Belows Javacript is the fourm index of http://forums.winglin.net/kenixkwok I see the background and the banners every day can automatcily change, but I do not really understand how exaclty belwos script works in order to to let background and teh banners every day can automatcily change, instead of manual change **their backorund is based on ***their banners is is based on I also want to achive:" teh index page automtcilly change the Backround pix and teh banners pix is auto rotating every 4 banners like them, that is too awesome...(^_^) i see this line :var interval = 5; is abvoe 42, 41, 'a', 30 is automatcilly created by the javascript?? how exactly belwos, can u give me soem explanation I donto understand at all Does the 2 scheme define is 2 style that automactilly change every day? -------original javascript------ // Define colour attributes of different display schemes var scheme = new Array(2); scheme[0] = new Object(); scheme[1] = new Object(); // var index = (new Date()).getDay() == 0 ? 1 : 0; document.linkColor = scheme[index].link_color; if ( isNN && ver >= 4 ) { tags.BODY.color = scheme[index].body_color; ids.title.color = scheme[index].title_color; for (var i = 0; i < document.styleSheets.length; i++) { for (var j = 0; j < rules.length; j++) {
if ( isIE && ver >= 4 ) { all.title.style.color = scheme[index].title_color;
// interval is the refresh interval in seconds var interval = 5; function countBanners () function displayBanner () var num_loaded = 0; for (var i = 0; i < banners.length; i++) { |
||
| 2Mar02 Will |
In response to: Awesome Javasript Analysis:Changing the background & rotating differently Banners every day Yesidol, this is a CGI forum. Although JavaScript and CGI sometimes work together, discussing standalong JavaScript programs does not fit within the forum's niche. I believe http://greatforums.com/ has a forum for JavaScript. |
||
| 2Mar02 yesidol |
In response to: Awesome Javasript Analysis:Changing the background & rotating differently Banners every day Thx for let me knwo the greaforums.com Wow, that is a great name I am post messege now, thx will!!! |
||