»
Tiếng AnhTiếng PhápTiếng Việt

In - Khung cuộn kiểu đứng - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Scrollers » Theo chiều đứng » Khung cuộn kiểu đứng
URL: https://www.javascriptbank.com/first-vertical-ticker-worldwide.html

Khung cuộn kiểu đứng © JavaScriptBank.comHiệu ứng tạo ra một hộp thoại">hộp thoại nằm ở phía trái-trên trình duyệt chứa các thông tin được hiển thị theo chiều dọc.

Phiên bản đầy đủ: jsB@nk » Scrollers » Theo chiều đứng » Khung cuộn kiểu đứng
URL: https://www.javascriptbank.com/first-vertical-ticker-worldwide.html



JavaScript
<SCRIPT language=JavaScript><!-- Beginning of JavaScript -// First Vertical Ticker worldwide// CONFIGURATION:// 1.   Delete the the DIV-block with the id 'deletethisblock'.// 2.   Save the rest as HTML-file.// 3.   Configure the varibales inside the head-section of the script.if (document.layers) {alert("This script does not work with Netscape Navigator")}// Edit the messages. Add as many messages as you likevar message = new Array()message[0]="Hello visitor, glad to see you!"message[1]="Ready to script-up your life?"message[2]="Go to JSBank and ..."message[3]="download the latest funscripts."message[4]="You will find 300+ tickers ..."message[5]="scrollers, animations, menus ..."message[6]="image tricks and much more!"message[7]="CLICK NOW! CLICK NOW! "// Edit the fontvar font_family="Arial"// Edit the font-sizevar font_size=18// Edit the font-color (must be RGB-Values)var font_color="255,255,255"// the vertical starting point of the scroller (distance to the top margin, pixels)var scrollerheight=270// Do not edit the variables belowvar scrollerwidth=400var startheight=0for (i=0;i<message.length-1;i++) {message[i]=message[i]+"    "}var i_message=0var i_meslength=0function initiate() {if (document.all) {document.all.rotationstyle.style.posLeft=-(Math.floor(scrollerwidth/2))+font_sizedocument.all.rotationstyle.style.posTop=startheightdocument.all.backcolor.style.posLeft=0document.all.backcolor.style.posTop=0        startscroll()}}function startscroll() {if (i_meslength<=message[i_message].length) {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("+font_color+">'+'<PARAM NAME="Line0003" VALUE="SetFillColor("+font_color+")">'+'<PARAM NAME="Line0004" VALUE="SetFont(\''+font_family+'\', '+font_size+', 0, 1, 0, 0)">'+'<PARAM NAME="Line0005" VALUE="Text(\''+message[i_message].substring(0,i_meslength)+'\', 0, 0, 0)">'+'</OBJECT>'        rotationobj.Rotate(0,0,-90) i_meslength+=2timer=setTimeout("startscroll()",50)}else {timer=setTimeout("changemessage()",4000)}}function changemessage() {        i_message++        if (i_message>=message.length) {i_message=0}i_meslength=0startscroll()}// - 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()><DIV id=backcolor onclick="document.location.href='http://JavaScriptBank.com'" style="BACKGROUND-COLOR: red; HEIGHT: 300px; LEFT: -2000px; POSITION: absolute; WIDTH: 30px"></DIV><DIV id=rotationstyle onclick="document.location.href='http://JavaScriptBank.com'" style="LEFT: -2000px; POSITION: absolute"><OBJECT classid=CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6 id=rotationobj></OBJECT></DIV></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->