Hi all,

i'm trying to make a script that selects a different image depending
on the id of the div then if the div isn't existing show a different
image.

I'm quite new to jquery, but have some php skills.

1- is the first i tried but no good. (it stills hovers but doesn't
show any different image.
2- same problem.

$('.div').bind("mouseover", function(){
                                                                1- if($('[EMAIL 
PROTECTED]'+$(this).attr("id")+"]") != "1"){
                                                                1- 
$(this).css({background:"url(images/
book_side_hover1.jpg)"});
                                                                1- }
                                                                2- else 
if($('[EMAIL PROTECTED]'+$(this).attr("2")+"]").attr("rel") !
= "selected"){
                                                                
2-$(this).css({background:"url(images/
book_side_hover2.jpg)"});
                                                                2-}
                                                                3-else {
                                                                
3-$(this).css({background:"url(images/book_side_hover.jpg)"});
                                                                3-}
                                                                                
                  });

If someone knows how to do this please.

Thanks

Reply via email to