ASP ScriptingJava ScriptingCGI ScriptingHTMLJavaLanguage CERP Education Links

JAVA SCRIPTING

Scroll Command Button Caption

<script language="Javascript">

<!--

var speed = 100

var message = "Welcome to my Page! "

var s = 0

var l = message.length

document.write("<form name='btn'><input type='button' "

+"name='sc' value='"+ message +"'></form>")

function btnsc() {

document.btn.sc.value = message.substring(s,l) + message.substring(0,s)

s++

if (s >= l) {

s = 0

}

setTimeout("btnsc()",speed)

}

btnsc();

//-->

</script>

 


Your Ad Here
Not All Of Your Subscribers Use RSS - AWeber Email Marketing
Your Ad Here