var myTimer; var mode = 1; var speed = 1000 * 30; var move_val = 100; var step_val = 10; var temp_step = 0; var x = 0; var dispHead; var dispLink; var dispDescription; if (document.layers) { document.write(''); } else if (document.all) { document.write('
'); } else if (document.getElementById) { document.write('
'); } function moveit() { if (document.layers) { if (document.allheadings.left < (window.innerWidth - 200 - 20)) { document.allheadings.left += step_val; } if (document.allheadings.left > (window.innerWidth - 200 - 20)) { document.allheadings.left = window.innerWidth - 200 - 20; } document.layers.allheadings.top = pageYOffset; setTimeout("moveit()",move_val); } else if (document.all) { if (document.all.allheadings.style.posLeft < (document.body.clientWidth - 200 - 10)) { document.all.allheadings.style.posLeft = document.all.allheadings.style.posLeft + step_val; } if (document.all.allheadings.style.posLeft > (document.body.clientWidth - 200 - 10)) { document.all.allheadings.style.posLeft = document.body.clientWidth - 200 - 10; } document.all.allheadings.style.top = document.body.scrollTop; setTimeout("moveit()",move_val); } else if (document.getElementById) { temp_step = temp_step + step_val; if ((temp_step - 200) < (window.innerWidth - 200 - 20)) { document.getElementById("allheadings").style.left = window.pageXOffset - 200 + temp_step; } if ((temp_step - 200) >= (window.innerWidth - 200 - 20)) { document.getElementById("allheadings").style.left = window.innerWidth - 200 - 20; temp_step = window.innerWidth; } document.getElementById("allheadings").style.top = document.body.scrollTop; setTimeout("moveit()",move_val); } } function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } function closeWindow() { if (document.layers) { document.layers.allheadings.visibility = "hidden"; } else if (document.all) { document.all.allheadings.style.visibility = "hidden"; } else if (document.getElementById) { document.getElementById("allheadings").style.visibility = "hidden"; } } function writeNews() { dispHead = headings[x]; dispLink = links[x]; if (mode == 1) { dispDescription = description[x]; } x++; if (x == headings.length) { x = 0; } if (document.layers) { if (mode == 0) { document.allheadings.document.write("
" + dispHead + "
"); document.allheadings.document.close(); } else { document.allheadings.document.write("
" + dispHead + "

" + dispDescription + "

[ Close ] [ Next ]
"); document.allheadings.document.close(); } } else if (document.all) { if (mode == 0) { allheadings.innerHTML = "
" + dispHead + "
"; } else { allheadings.innerHTML = "
" + dispHead + "

" + dispDescription + "

[ Close ] [ Next ]
"; } } else if (document.getElementById) { if (mode == 0) { newlayer = document.getElementById("allheadings"); newlayer.innerHTML = "
" + dispHead + "
"; } else { newlayer = document.getElementById("allheadings"); newlayer.innerHTML = "
" + dispHead + "

" + dispDescription + "

[ Close ] [ Next ]
"; } } myTimer = setTimeout('writeNews();', speed); } setTimeout('moveit();', 1000); var headings = new initArray("Like This?","Highlight Your Events","Recommend Your Site","Promote Your Web Site","Know Your Server"); var links = new initArray("http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=410","http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=800","http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=700","http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=200","http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=110"); var description = new initArray("News Flasher Pro will allow you to post your own headings and articles on your web site just like this!","With the Calendar Planner you can always show your visitors your upcoming events and remind yourself of things to do. Displays an entire month of events with just one line HTML and NO SSI!","The Site Recommender will ensure that your visitors recommend people to your web site because it stays in the corner of your browser!","FFA Promoter allows you to collect e-mail addresses from FFA submission companies, and immediately send out an e-mail advertising your products and services!","System Sleuth will give all the necessary variables and directories to run virtually any script. Find your absolute paths, writable directories, location of Perl, Sendmail, and more!"); setTimeout("writeNews()",1000);