PageSourceSearch

https://www.pieper-shop.de/JavaScript/changeImage.js

js pieper-shop.de collected 2026-10-07 02:59:01 UTC 1,103 bytes, 36 lines download raw bytes

1    function basename(path) {
2        console.log(path);
3       if(path) {
4           return path.split('/').reverse()[0];
5       }
6    }
7
8    function changeImage(targetID,src,hdl,hrefID) {
9        
10        //document.getElementById(targetID).src = src;
11        //alert();
12        //document.getElementById(hrefID).href = hdl;
13        $('#'+targetID).attr("src",src);
14        $('#'+hrefID).attr("href",hdl);
15        
16    }
17    
18    
19    // ME: Button hover effekt 
20    $('.butt_hover').mouseenter(function(){
21        if($(this).attr("src"))
22        {
23            var button = basename ($(this).attr("src"));
24            var button_split = button.split(".");
25            button_2 = button_split[0] + "_2." + button_split[1];
26            $(this).attr("src","/images/webelemente/" + button_2); 
27        }
28     });
29    $('.butt_hover').mouseleave(function(){
30        if($(this).attr("src"))
31        {
32            var button_path = $(this).attr("src");
33            var button_1 = button_path.replace("_2.",".");
34            $(this).attr("src",button_1);
35        }
36     });

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.