»
EnglishFrenchVietnamese

Print - TextTopper: bend your messages up and down - JavaScriptBank.com

Full version: jsB@nk » Text » TextTopper: bend your messages up and down
URL: https://www.javascriptbank.com/texttopper-bend-your-messages-up-and-down.html

TextTopper: bend your messages up and down © JavaScriptBank.comTextTopper bends your messages up and down. Smooth and quiet impression. Use as many messages as you like. Easy to configure. Made for IE5x.

Full version: jsB@nk » Text » TextTopper: bend your messages up and down
URL: https://www.javascriptbank.com/texttopper-bend-your-messages-up-and-down.html



JavaScript
<SCRIPT><!-- Beginning of JavaScript -// chu tao hieu ungvar message = new Array()message[0]="Chu Lon Dan"message[1]="jscollect.topcities.com"// kich co cua vung ap dung hieu ung tuong ung voi font_size (pixels).var scrollerheight=500var scrollerwidth=1200// font chuvar font_family="Verdana"// kich co fontvar font_size=100// vi tri su dung hieu ung (pixel)var x_textposition=10var y_textposition=10// Do not edit the variables belowvar i_message=0var i_loop=0var max_loop=45var timerscrollerwidth=2*scrollerwidthy_textposition=y_textposition-scrollerheight+font_sizex_textposition=x_textposition-Math.floor(scrollerwidth/2)function initiate() {if (document.all) {document.all.rotationstyle.style.posLeft=x_textpositiondocument.all.rotationstyle.style.posTop=y_textposition        changemessage()}}function changemessage() {do_rotate="yes"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(255,255,255)">'+'<PARAM NAME="Line0003" VALUE="SetFillColor(0,0,255)">'+'<PARAM NAME="Line0004" VALUE="SetFont(\''+font_family+'\', '+font_size+', 400, 0, 0, 0)">'+'<PARAM NAME="Line0005" VALUE="Text(\''+message[i_message]+'\',0, 2, 0)">'+'</OBJECT>'rotationobj.Rotate(-90,0,0) startscroll()}function startscroll() {if (i_loop < max_loop) {        rotationobj.Rotate(2,0,0) i_loop++timer=setTimeout("startscroll()",20)}   else {i_loop=0timer=setTimeout("endscroll()",2000)}}function endscroll() {if (i_loop < max_loop) {        rotationobj.Rotate(-2,0,0) i_loop++timer=setTimeout("endscroll()",50)}   else {        i_message++i_loop=0        if (i_message>=message.length) {i_message=0}timer=setTimeout("changemessage()",1000)}}// - 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
<BODY onload=initiate()><SPAN id=rotationstyle style="POSITION: absolute"><OBJECT classid=CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6 id=rotationobj></OBJECT></SPAN></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->