module images changing via script.j

master
Andre Castro 5 years ago
parent 88a19182c0
commit 658a576daf

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 200 KiB

@ -14,20 +14,18 @@ $(document).ready(function(){
// Img of module on mouseenter
/*
$('div.moduleimg img').mouseenter(function(){
var modulo_photo = $(this).attr('src').replace('img/pcb_', 'img/photo_').replace('.png','.png');
var modulo_photo = $(this).attr('src').replace('img/pcb_', 'img/mimgphoto_').replace('.png','.jpg');
$(this).attr('src', modulo_photo);
$(this).css('border', '3px solid blue');
});
$('div.moduleimg img').mouseleave(function(){
var modulo_pcb = $(this).attr('src').replace('img/photo_', 'img/pcb_').replace('.png','.png');
var modulo_pcb = $(this).attr('src').replace('img/mimgphoto_', 'img/pcb_').replace('.jpg','.png');
$(this).attr('src', modulo_pcb);
$(this).css('border', '1px solid red');
});
})
*/
$(window).resize(function(){
adjust_height();
})

Loading…
Cancel
Save