<!--Method 1: Achieve the merry-go effect of the title;
<title> Beijing welcome </title>
< Script type= "Text/javascript"
// //var x =;
// //alert (isNaN (x)); Determine if it is a numeric
// function scroll () {
// var title = Document.title;
// var fristchar = title.charAt (0);// The first character to be fetched from; (charAt)
// var rightstr = Title.substring (1, title.length); The end position must be title.length;
// document.title = rightstr + Fristchar;
// }
// setinterval ("scroll ()", 500);///every 0.5 seconds;
Method 2: Achieve Merry-go effect
function Showinfo1 () {
var info = document.getElementById (' Text1 ');
Info.value = INFO.VALUE.SUBSTR (1) + info.value[0];
}
SetInterval (SHOWINFO1, 500);
<body>
<input id= "Text1" type= "text" value= "Beijing Welcomes You"/>
<input id= "Button4" type= "button" value= "Dot Bar" onclick= "showinfo1 ()"/>
</body>