کد
<!--***********|www.gpgtools.blogsky.com|*********** --> <HTML> <!-- Created with the CoffeeCup HTML Editor++ --> <!-- http://www.coffeecup.com/editor --> <HEAD> <TITLE>AMAZING TEXT SLIDESHOW</TITLE> <!-- DESCRIPTION: This will make your text appear on the browser, line by line, and then conclude with an auto-jump to your website. INSTRUCTIONS: Place this script in the HEAD tags of your webpage. Then place the text you want to be displayed in the area below starting with 'Hello'. It will be after the 'var words' variable. IMPORTANT: This is a stand alone page. Be sure to change the link below so that it will jump to your homepage. FUNCTIONALITY: Works in both Netscape & IE. --> <SCRIPT LANGUAGE="JavaScript"> //Modified by CoffeeCup Software //This code is Copyright (c) 1997 CoffeeCup Software //all rights reserved. License is granted to a single user to //reuse this code on a personal or business Web Site. function makeArray() { this.length = makeArray.arguments.length; for (var i = 0; i < this.length; i++) this[i + 1] = makeArray.arguments[i]; } function ccText (val1, val2, val3, val4) { this.curText = ''; this.posit = 1; this.word = val1; this.length = val1.length; this.val3 = val3; this.val2 = val2; this.val4 = val4; this.print = ccText2; } function ccText2() { if (this.posit <= this.length) { this.curText = this.word[this.posit] outStringWord = ccU + this.val3 + this.curText + ccD; parent.draw.location = 'javascript:parent.outStringWord'; this.posit++; } else { doneLoop = true; top.location = this.val4; } } function ccTextSlide() { if (!doneLoop) reDraw = setTimeout('ccTextSlide()', wordIntro.val2); wordIntro.print(); } <!--REPLACE THE CONTENT WITH YOUR OWN MESSAGE--> var words = new makeArray (' Hello ',' ...and welcome to CoffeeCup Software. ', ' This is our <U>TEXT SLIDESHOW...</U> ', ' Use this script to open up your website... ', ' Display important or urgent news... ', ' Finish it with an <A HREF=http://www.coffeecup.com/><B>auto-link</B></A> to your website!! '); var wordIntro = new ccText (words, 2000, '<CENTER><FONT SIZE=5 FACE=VERDANA, ARIAL, Comic Sans MS>', 'http://www.coffeecup.com/'); <!--REPLACE THE ABOVE LINK WITH YOUR LINK--> <!--CHANGB THE VARIABLES BELOW TO MANIPULATE THE SIZE, COLOR, AND FONT STYLE OF YOUR MESSAGE--> var ccU = '<HTML><BODY BGCOLOR="#000000" TEXT= "#000000"><CENTER><H3><FONT FACE=ARIAL SIZE=6 COLOR=#FFFFFF>The Amazing Text Slideshow</FONT></h3></CENTER><BR><BR><CENTER><TABLE WIDTH=100% BGCOLOR=#FFFFFF><TR><TD>'; var ccD = '</TD></TR></table><br><br></HTML>'; var ccB = ccU + ccD; var doneLoop = false; </SCRIPT> <FRAMESET onLoad="ccTextSlide()" ROWS="100%, *" FRAMEBORDER=NO BORDER=0> <FRAME SCROLLING=AUTO SRC="javascript:parent.ccB" NAME="draw" MARGINWIDTH=3 MARGINHEIGHT=3> </FRAMESET> </HEAD> </HTML> <!--***************| www.gpgir.org|************** -->