Peripatetic text
Syntac:
<html>
<head>
<script language="JavaScript">
<!-- Hide the script from old browsers --
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function txtScroll() {
var i,x
var message="example name of website.";
x=(60/message.length)+1;
for(i=0;i<=x;i++) message+=" "+message; document.tickerTape.tickerTape.value=message.substring
(position,position+60); if(position++==128) position=2; id=setTimeout("txtScroll()",1000/10);}function action() { if(!pause)
{ clearTimeout(id); pause=1; } else { ticker(); pause=0; } }
// --End Hiding Here -->
</script>
<title>tutorial javascript
<body onLoad="txtScroll()">
<center>
<form name="tickerTape">
</center>
</body>
</html>
boldness :type in notepad and keep example.html.
0 comments on "Tutorial Java script"
Subscribe in a Reader
Post a Comment