»
EnglishFrenchVietnamese

Print - Diagonal text scroller - JavaScriptBank.com

Full version: jsB@nk » Text » Animation » Diagonal text scroller
URL: http://www.javascriptbank.com/diagonal-text-scroller.html

Diagonal text scroller © JavaScriptBank.comThis is probably the first diagonal message-scroller worldwide.

Full version: jsB@nk » Text » Animation » Diagonal text scroller
URL: http://www.javascriptbank.com/diagonal-text-scroller.html



JavaScript
<SCRIPT language=JavaScript><!-- Beginning of JavaScript -// First diagonal textscroller worldwideif (document.layers) {alert("This script does not work with Netscape Navigator")}var message = new Array()message[0]="He was something of a palmist,"message[1]="in addition to everything else,"message[2]="and his readings were valued"message[3]="because he could do them only"message[4]="when the mood took him."message[5]="When I was ten or twelve"message[6]="he had given me a reading"message[7]="and had seen great things in my head."message[8]="So I respected his judgement."message[9]="He added to that reading"message[10]="from time to time."message[11]="I remember one occasion especially."message[12]="He was the bentwood rocker,"message[13]="rocking unsteadily from the edge"message[14]="of the carpet"message[15]="on the concrete floor."message[16]="V.S Naipaul."message[17]="A Bend in the River."var i_message=0var scrollerheight=250var scrollerwidth=400var startheight=0var font_size=25var font_family="Times"var timerfunction initiate() {document.all.rotationstyle.style.posLeft=-(Math.floor(scrollerwidth/2))+font_sizedocument.all.rotationstyle.style.posTop=startheight        startscroll()}function startscroll() {if (document.all) {do_rotate="yes"        rotationstyle.filters[0].apply()rotationstyle.innerHTML='<OBJECT ID="rotationobj" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="position:relative;width:'+scrollerwidth+'px;height:'+2*scrollerheight+'px">'+        '<PARAM NAME="Line0001" VALUE="SetLineStyle(0)">'+        '<PARAM NAME="Line0002" VALUE="SetLineColor(0,0,0)">'+'<PARAM NAME="Line0003" VALUE="SetFillColor(0,0,0)">'+'<PARAM NAME="Line0004" VALUE="SetFont(\''+font_family+'\', '+font_size+', 400, 0, 0, 0)">'+'<PARAM NAME="Line0005" VALUE="Text(\''+message[i_message]+'\', 0, 0, 0)">'+'</OBJECT>'        rotationstyle.filters[0].play()        rotationobj.Rotate(0,0,-45)            i_message++        if (i_message>=message.length) {i_message=0}timer=setTimeout("startscroll()",4000)}}function stopscroll() {do_rotate="no"}// - End of JavaScript - --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<SPAN id=rotationstyle style="FILTER: revealTrans(Transition=3, Duration=2); LEFT: -2000px; POSITION: absolute"><OBJECT classid=CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6 id=rotationobj></OBJECT></SPAN><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->