عرض مشاركة واحدة
قديم 02-19-2014, 05:20 PM   #1
Blog-Add
مدون نشيط
 
تاريخ التسجيل: Feb 2014
المشاركات: 124
افتراضي اضافة اضاءة لصور مدونتك - اضافات بلوجر

السلام عليكم ورحمة الله وبركاته

اقدم لكم اليوم اضافة تأثير اضاءة علي الصورة بمجرد مرور الماوس عليها

الطريقة سهلة وبسيطة تابعو الشرح :

اذهب الي صفحة القالب ثم تحرير HTML ثم البحث عن : </head>

واصف قبلها الكود التالي :

كود PHP:
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'/>
<
script type='text/javascript'>
$(
document).ready(function(){
$(
".post img").fadeTo("slow"1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
$(".post img").hover(function(){
$(
this).fadeTo("slow"0.5); // This should set the opacity to 100% on hover
},function(){
$(
this).fadeTo("slow"1.0); // This should set the opacity back to 30% on mouseout
});
});
</script>
<script type='text/javascript'>
$(document).ready(function(){
$(".latest_img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
$(".latest_img").hover(function(){
$(this).fadeTo("slow", 0.5); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("slow", 1.0); // This should set the opacity back to 30% on mouseout
});
});
</script> 
واحفظ العمل ومبروك عليك الاضافة

الدعم العربي

Blog-Add غير متواجد حالياً   رد مع اقتباس