အရင္ကတင္ထားတဲ႕ ကုတ္ေတြနဲ႕ မတူပါဘူး..ဒီ တစ္ခုကိုေတာ႕ ကြ်န္ေတာ္ အႀကိဳက္ဆံုးပါပဲဗ်ာ..
တစ္ကယ္လည္း မိုက္ပါတယ္...နမူနာႀကည္႕ခ်င္ရင္ ဒီလင္႕ေလးကို သြားျပီး ႀကည္႕ႏိုင္ပါတယ္...
သံုးခ်င္တယ္ဆိုရင္ေတာ႕ ေအာက္မွာ ကုတ္ေပးထားပါတယ္..
ကိုယ္႕ဘေလာ႕က HTML/JAVA ကုတ္ထည္႕တဲ႕ ေနရာမွာ ထည္႕လိုက္ရံုပါပဲ ။
<script type="text/javascript">
var rev = "fwd";
function titlebar(val)
{
var msg = " Welcome to itwebcrazyboy.blogspot.com";
var res = " ";
var speed = 100;
var pos = val;
msg = " ~~~~~ "+msg+" ~~~~~";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}
titlebar(0);
</script>
var rev = "fwd";
function titlebar(val)
{
var msg = " Welcome to itwebcrazyboy.blogspot.com";
var res = " ";
var speed = 100;
var pos = val;
msg = " ~~~~~ "+msg+" ~~~~~";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}
titlebar(0);
</script>
အဆင္ေျပမယ္လို႕ ေမွ်ာ္လင့္ပါတယ္...ကြ်န္ေတာ္႕ ဘေလာ႕ေလးကို လာေရာက္လည္ပတ္တဲ႕ အတြက္
ေက်းဇူး အမ်ားႀကီး တင္ပါတယ္...ေပ်ာ္ရႊင္ပါေစေနာ္....
No comments:
Post a Comment