Cara ini adalah cara yang ada dan di pakai di web Yang INI.
dan hasilnya cukup bagus lah menurut saya.
Sebetulnya saya kira cara ini hanya bisa dijalankan pada website ... eeh ternyata cara ini juga bisa dijalankan pada blog. heheheeh Jadi langsung aja deh saya share ke sobat".
Dibawah ini scriptnya (maaf kali ini saya tidak memberikan demo)
<h4>
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<script language="JavaScript1.2">var message="Ini Hanya Sebagai Contoh Efek Neon Light Text (2 warna)"
var neonbasecolor="white"
var neontextcolor="red"
var neontextcolor2="blue"
var flashspeed=120 // speed of flashing in milliseconds
var flashingletters=5 // number of letters flashing in neontextcolor
var flashingletters2=3 // number of letters flashing in neontextcolor2 (0 to disable)
var flashpause=0 // the pause between flash-cycles in milliseconds
///No need to edit below this line/////
var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)
function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}
function neon(){
//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
crossref(m).style.color=neonbasecolor
}
//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor
if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor
if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",flashpause)
return
}
}
function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()</script>
</h4>
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<script language="JavaScript1.2">var message="Ini Hanya Sebagai Contoh Efek Neon Light Text (2 warna)"
var neonbasecolor="white"
var neontextcolor="red"
var neontextcolor2="blue"
var flashspeed=120 // speed of flashing in milliseconds
var flashingletters=5 // number of letters flashing in neontextcolor
var flashingletters2=3 // number of letters flashing in neontextcolor2 (0 to disable)
var flashpause=0 // the pause between flash-cycles in milliseconds
///No need to edit below this line/////
var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)
function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}
function neon(){
//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
crossref(m).style.color=neonbasecolor
}
//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor
if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor
if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",flashpause)
return
}
}
function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()</script>
</h4>
Catatan :
Pada
<script language="JavaScript1.2">var message="Ini Hanya Sebagai Contoh Efek Neon Light Text (2 warna)"
"Ini Hanya Sebagai Contoh Efek Neon Light Text (2 warna)" = adalah text yang akan muncul.
var neonbasecolor="white"
white = warna Background
var neontextcolor="red"
red = warna text1(depan)
var neontextcolor2="blue"
blue = warna text2(belakang)
var flashspeed=120 // speed of flashing in milliseconds
120 = kecepatan warna text berjalan
var flashingletters=5 // number of letters flashing in neontextcolor
5 = banyak text yang akan tampil
Selamat mencoba ^_^
Pada
<script language="JavaScript1.2">var message="Ini Hanya Sebagai Contoh Efek Neon Light Text (2 warna)"
"Ini Hanya Sebagai Contoh Efek Neon Light Text (2 warna)" = adalah text yang akan muncul.
var neonbasecolor="white"
white = warna Background
var neontextcolor="red"
red = warna text1(depan)
var neontextcolor2="blue"
blue = warna text2(belakang)
var flashspeed=120 // speed of flashing in milliseconds
120 = kecepatan warna text berjalan
var flashingletters=5 // number of letters flashing in neontextcolor
5 = banyak text yang akan tampil
0 komentar:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))
Mohon Berkomentarlah dengan Baik dan Sopan
Maaf, jika ingin menyertakan url mohon di LINK saja ya (NO http://) atau komentar hanya sekedar promosi akan di hapus. Thank's ^_^
Posting Komentar