I have problem with this script. It should change images according to on which link you hover. I suppose it is written good and I have no idea why it doesn't work ..
- $(document).ready(function() {
- $(".byt").bind("mouseenter",function() {
- stary_byt = $("#patro").attr("src");
- novy_byt = $(this).attr("id");
- $("#patro").attr({src : "patra/"+novy_byt+".gif"});
- }).bind("mouseleave",function() {
- $("#patro").attr({src : stary_byt});
- });
- });