Parašė Nevo· 2010 Sau. 5 22:01:09
#8
Važines title tekstas, kaip su marqee ;)
<title>Nevo.in</title>
<script>
var repeat=0 //enter 0 to not repeat scrolling after 1 run, othersise, enter 1
var title=document.title
var leng=title.length
var start=1
function titlemove() {
titl=title.substring(start, leng) + title.substring(0, start)
document.title=titl
start++
if (start==leng+1) {
start=0
if (repeat==0)
return
}
setTimeout("titlemove()",140)
}
if (document.title)
titlemove()
</script>
Rodys einančias rodykles į tavo title užrašą
<script>
var titletext='Nevo.in'
var thetext=''
var started=false
var step=0
var times=1
function welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
document.title = titletext;
setTimeout('anim()',1);
}
thetext = titletext;
}
}
function showstatustext(txt)
{
thetext = txt;
setTimeout('welcometext()',4000)
times++
}
function anim()
{
step++
if (step==7) {step=1}
if (step==1) {document.title='>==='+thetext+'===<'}
if (step==2) {document.title='=>=='+thetext+'==<='}
if (step==3) {document.title='>=>='+thetext+'=<=<'}
if (step==4) {document.title='=>=>'+thetext+'<=<='}
if (step==5) {document.title='==>='+thetext+'=<=='}
if (step==6) {document.title='===>'+thetext+'<==='}
setTimeout("anim()",200);
}
if (document.title)
window.onload=onload=welcometext
</script>
JS pasimokink :)
js kodus į subheader.php dėk, tarp <head> </head>
Redagavo Nevo· 2010 Sau. 5 22:01:50