I am wanting to do a simple CSS image replacement.

Each page <body> tag has an ID (Ex: ID="#sec-adv").  So, if the script finds
that particular <body> ID, then it will replace background-image for
#page-photo DIV. I cannot get this to work.  I'm sure that I am missing
something very small.  Can someone please help?


 $("#sec-adv").each(function(){
                
$("#page-photo").css('background-image','url(../images/pagepic.jpg)'); 
 });
-- 
View this message in context: 
http://www.nabble.com/CSS-image-replacement-problem-tf4684287s27240.html#a13385461
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to