Saturday, March 21, 2009

Document title Scroller

Description:
Scroll your document's title into view (in IE4+ and NS6). Useful, for example, to display long titles. You can configure the scrolling to run just once, or perpetually.
Add the following into the <HEAD> section of your page, replacing the default <title> tag:
<title>..::Welcome to dkwny2031, dedicated to NY ::.. </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>
ganti tulisan berwarna merah dengan kata anda sendiri. ganti pula tulisan berwarna hijau dengan 1 untuk selalu mengulang mengulang (default 0 scroll hanya sekali. selamat mencoba ... [dkwny2031.blogspot.com]

0 komentar:

Post a Comment

saran, komentar dan kritikan anda sangat berharga buat saya, terima kasih.