<script LANGUAGE="JAVASCRIPT"> var s_width; var s_height; var s_color; var s_backgroundColor; var s_borderStyle; var s_borderWidth; var s_borderColor; var s_font; var s_fontSize; var s_fontStyle; var s_innerText; var s_paddingTop; var s_filterState; var s_filterStrength; function option_D(){ scriptlet.foreColor = "Red"; scriptlet.font = "Arial"; scriptlet.fontSize = "18"; scriptlet.fontStyle = "normal"; scriptlet.text = theBox.value; scriptlet.farPoint = 1024; scriptlet.startPoint = 10; } </script> <br> <br> <center> <object ID="scriptlet" STYLE="width:100%; height:20;" type="text/x-scriptlet" data="java_script_0097a_ukazka.html"></object> </center> <br> <br> <div align="center"><center> <table border="0"> <tr> <td><center><span STYLE="font-family:Arial; font-size:11pt; font-weight:bold">Zde napiÜ sv∙j text:</span></center></td> </tr> <tr> <td><center><input ID="theBox" TYPE="TEXT" SIZE="20"></center></td> </tr> <tr> <td><center><BUTTON onclick="option_D()">Zm∞na textu</BUTTON></center></td> </tr> </table> </center></div> <body onload="scrollMessage()"> <script language="JavaScript"> <!-- //Programmable Properties: //color, font-family, fontSize, fontStyle, message var maxLeft = 1024; var currentLeft; var startLeft = 10; public_description = new MyScriptlet; function MyScriptlet(){ this.put_foreColor = put_foreColor; this.put_font = put_font; this.put_fontSize = put_fontSize; this.put_fontStyle = put_fontStyle; this.put_text = put_text; this.put_farPoint = put_farPoint; this.put_startPoint = put_startPoint; } function put_foreColor(sCol){ theDiv.style.color = sCol; } function put_font(sfont){ theDiv.style.fontFamily = sfont; } function put_fontSize(ssize){ theDiv.style.fontSize = ssize; } function put_fontStyle(sstyle){ theDiv.style.fontStyle = sstyle; } function put_text(text){ theDiv.innerText = text; } function put_farPoint(farLeft){ maxLeft = farLeft; } function put_startPoint(startPoint){ startLeft = startPoint; } function scrollMessage() { if (currentLeft >= maxLeft) { theDiv.style.left = -startLeft; } currentLeft = theDiv.style.posLeft; currentLeft += 1; theDiv.style.left = currentLeft; window.setTimeout('scrollMessage()', 10); } // --> </script> <div id=theDiv style="position:absolute; width:100%"><b><font face="Arial" color="#0000FF">Java Script Library</font></b></div> |