cara disable highlight text dalam blog / tukar warna highlight
Saturday, 19 May 2012 | 06:38 | 0 comments
hey , :)
harini la kan liely nk ajar kan tuto taw ,
nie nk ajarkan bukan nyer liely yg buat taww .
thankss kepade adekk aein aliesyaaa yg tak shy shy cat tanye liely melalui facebook .
adoiii :)
thanksss taw adek syg :)
tgokk die baru je darjah 4 x shy pon tanye liely ni korgg buat buat malu pulakkk
rugi la syg ,
kan liely dh ckp ""SHARING IS CARING""
betol x . ish byk ngomong nieh jadi nya ,
hahaha ., ok la meyh kite blajaa yerkkk :)
harini la kan liely nk ajar kan tuto taw ,
nie nk ajarkan bukan nyer liely yg buat taww .
thankss kepade adekk aein aliesyaaa yg tak shy shy cat tanye liely melalui facebook .
adoiii :)
thanksss taw adek syg :)
tgokk die baru je darjah 4 x shy pon tanye liely ni korgg buat buat malu pulakkk
rugi la syg ,
kan liely dh ckp ""SHARING IS CARING""
betol x . ish byk ngomong nieh jadi nya ,
hahaha ., ok la meyh kite blajaa yerkkk :)
***PERHATIAN HIGHLIGHT BUKAN SAHAJA BOLEH DISABLE TAPI BOLEH TUKAR WARNANYE , KALAU NAK LIELY AKAN AJAR LEPAS TUTO NIE NANTI :)
fist skali u olls kene ikot step nieh :)
dashboard } desing } add a gadet } html / java script
copy and paste kod dibawah ke dalam ruand html / java script tu tadi oke :)
<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"
</script>
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"
</script>
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>
save dan lihat hasilnye yeah ,
dah jadi , bagi tahu liely tak jadi pon bg taw liely taww , :)
***EKH EKH BELOM HABIS SYG , LIELY NK TEPATKAN JANJI LIELY TAWW , MASE KAT ATAS UHH LIELY ADEE CKP KAN YANG HIGHLIGHT NIE BOLEH TKAR WARNA JUGAK KAN , OKE LETS TU NEXT TUTO :)
ok meyh kite kembali dgn cara nak tuka warna highlight pulak
ikot step di bawah ,
dashboard } desing } edit html } tick expand widget template
tekan serentak pada keyboard ctrl + f dan cari kod ni
body {
copy kod dibawah n paste sebelum/diatas kod yank korang cari tady :)
::-moz-selection {
background: #CC3399;
color: #ffffff;
}
body {
copy kod dibawah n paste sebelum/diatas kod yank korang cari tady :)
::-moz-selection {
background: #CC3399;
color: #ffffff;
}
yang liely bold kan warne biru tu korang boleh tukar warna die ,
korang boleh cariek kod warna tu kat sini :)
yang paling penting
korang kene preview dulu jadi ke tak . aww .
kalau jadi allahamdulilah , kalau tak jadi bg taw lie.ly jadi pon bg taw jugak :)
------sharing is caring------