عرض مشاركة واحدة
خبير JavaScript
تاريخ التسجيل: Jul 2002-
Blog Entries: 15
#4 (permalink)  

جرب هذا التعديل الذي اجريته على ملف الأخ wcc

كود PHP:
<script type="text/javascript">
<!--
$width 500// change it
window.onload = function(){
var 
wcc document.getElementsByTagName('img');
    for(
i=0i<wcc.lengthi++){
        var 
Img = new Image();
        
Img.src wcc[i].src;
         if(
Img.width $width ){
            
wcc[i].width "200" // change it
            //wcc[i].height = "200";
            
wcc[i].rel "lightbox";
            
wcc[i].style.cursor "pointer";
            
wcc[i].onclick = function(){
                
document.location this.src;
            }
        }
    }
}
//-->
</script> 






Zizwar غير متواجد حالياً   قديم 12-03-2008, 03:25 PM
رد مع اقتباس