Tuto kali ini pasal jquery image hover . Cuba korang halakan cursor ni kat gambar
atas . Gambar tu jadi kabur kan . Tula namanya jquery image hover .
Kalau nak boleh follow step bawah ni . Credit to : Pija
Dashboard > Design > Edit HTML > Tick Expand Widget Template
Search code ni <head>
Sekarang copy code kat bawah ni dan pastekan selepas/bawah <head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>Savekan !
<script type='text/javascript'>
$(document).ready(function(){
$(".post img").fadeTo("slow", 1.0);
$(".post img").hover(function(){
$(this).fadeTo("slow", 0.5);
},function(){
$(this).fadeTo("slow", 1.0);
});
});
</script>
<script type='text/javascript'>
$(document).ready(function(){
$(".latest_img").fadeTo("slow", 1.0);
$(".latest_img").hover(function(){
$(this).fadeTo("slow", 0.5);
},function(){
$(this).fadeTo("slow", 1.0);
});
});
</script>
No comments:
Post a Comment