ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์Programmingทำ TITLE BAR มีตัวอักษรวิ่งไปมาทีละตัวจากซ้ายไปขวา
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ทำ TITLE BAR มีตัวอักษรวิ่งไปมาทีละตัวจากซ้ายไปขวา  (อ่าน 1654 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
wichan
ก๊วนเสียว
*

พลังน้ำใจ: 92
ออฟไลน์ ออฟไลน์

กระทู้: 499



ดูรายละเอียด เว็บไซต์
« เมื่อ: 30 ธันวาคม 2008, 17:45:43 »

 :)เริ่มเลยน้ะครับ Smiley

นำ CODE ด้านล่างไปไว้ที่ <head> ครับ

โค๊ด:
<script language="JavaScript1.2">
var message="พิมพ์ตัวอักษรที่นี่ครับ"     //specifys the title
var message=message+"          " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds.
i="0"          //declares the variable and sets it to start at 0
var temptitle=""                 //declares the variable and sets it to have no value yet.
var speed="150"                  //the delay in milliseconds between letters

function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i)  //sets the initial title
temptitle=temptitle+message.charAt(i)       //increases the title by one letter
i++     //increments the counter
if(i==message.length)     //determines the end of the message
{
i="0"     //resets the counter at the end of the message
temptitle=""     //resets the title to a blank value
}
setTimeout("titler()",speed)    //Restarts. Remove line for no-repeat.
}

window.onload=titler
</script>

 ;)เท่านี้ครับ Wink
บันทึกการเข้า

memelody
คนรักเสียว
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 115



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 30 ธันวาคม 2008, 18:21:45 »

thank  Huh?
บันทึกการเข้า

EThaiZone
เจ้าพ่อโลลิค่อน
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 321
ออฟไลน์ ออฟไลน์

กระทู้: 12,518



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 30 ธันวาคม 2008, 23:53:23 »

ทำไมไม่ทำรวมกระทู้ล่ะครับ เช่นรวมกระทู้แจก javascript อะ

เวลาคนค้นจะได้ค้นง่ายๆ  Tongue
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์