|
เลื่อนเม้าส์มาที่นี่และดูความเปลี่ยนแปลงบนไตเติ้ลบาร์
นำ
Code ไปวางไว้ในส่วนของ <HEAD>
<script
language="JavaScript1.2">
var cnt=-1;
var str;
function animateTitle(nt,t){
str=nt;
if(document.all ||document.getElementById){
if(t==2){
document.title='';
cnt=-1;
}
if(cnt<str.length){
if(str.charAt(cnt+1)==" "){
++cnt;
document.title+="-"
}
else{
document.title+=str.charAt(++cnt);
}
}
TO=setTimeout('animateTitle(str)',200);
if(cnt==str.length){
clearTimeout(TO);
}
}
}
</script>
นำ
Code ไปวางไว้ในส่วนของ <Body>
<BODY
onload ="animateTitle('Welcome
to www.hippographic.com',2)">
ถ้าต้องการให้มีการแสดง
Animation บนไตเติ้ลบาร์ เมื่อนำเม้าส์ไปวางบนลิ้งก์
ให้ใส่ Code ดังนี้
<A
href="##" onmouseover="animateTitle('Learn
Photoshop on www.hippographic.com',2)">
หมายเหตุตัวอักษรที่เป็นสีเขียว สามารถเปลี่ยนให้เป็นข้อความที่คุณต้องการได้

|