HTTrack Website Copier
Free software offline browser - FORUM
Subject:
Author: Otaku
Date: 06/10/2012 19:39
 
Sorry. What I meant was that I cannot download the "img/b_load_on.png" image,
which shows only up if you point over the normal button ("img/b_load.png"). I
realized that this mouseover effect uses javascript so I guess I have to
download it by myself :/ 


$(function(){
    $("img.rollover").each(function(){
        $("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,
"$1_on$2"));
    })
    
    
    if($.browser.msie && $.browser.version<7){
        $("img.rollover").each(function(){
            
            $(this)
                .data("src",$(this).attr("src"))
                .attr("src","img/transparent.html")
               
.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
            
        }).mouseover(function(){
           
$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src").replace(/^(.+)(\.[a-z]+)$/,
"$1_on$2")+"',sizingMethod='scale')")
        }).mouseout(function(){
           
$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
        })
        
    }else{
        $("img.rollover").mouseover(function(){
            $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,
"$1_on$2"));
        }).mouseout(function(){
           
$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/,
"$1$2"));
        })
    }
})
$("img.rollover").each(function(){
    $("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,
"$1_on$2"));
})
 
Reply Create subthread


All articles

Subject Author Date

06/10/2012 18:24

06/10/2012 19:13

06/10/2012 19:39




6

Created with FORUM 2.0.11