var myTimer; var mode = 1; var speed = 1000 * 20; 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 (window.pageXOffset < (window.innerWidth - 200 - 20)) { document.getElementById("allheadings").style.left = window.pageXOffset + temp_step; } if (temp_step >= (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("Jason J's Web Site","InstaChat 3.0","Get FREE Stuff","Random Image Rotator 2.0"); var links = new initArray("http://www.jasonj.biz","http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=3500","http://www.freestuffcenter.com","http://www.cgiconnection.com/cgi-bin/cgi-con/system.cgi?area=scripts&docs=4000"); var description = new initArray("Here's a great site of an up and coming actor/model. Check out his site and give him some feedback. MP3's even available.
","Let all your visitors chat instantly when they come to your site. No logging on required! Realtime, Refresh, Pop Up, or Static display on your browser!","This place has links to a whole bunch of free things. Includes software, clipart, books, and much more!
","Show off your products in seconds and link each to their own page. Rotate your products, photos, and anything else you can imagine with just a click."); setTimeout("writeNews()",1000);