I am trying to use css("background-image",image) but it does not set
the image as background. What am I doing wrong. here is the code.

function changeit(imgnum){
 $(".story").each(function(i){
    var item = $(".story").eq(i);
        var image = $(".fullst").eq(i).html();

    if ( item != "") {
        if(i != imagenum){
                $(item).fadeOut("slow");
        }
        else{
                $(item).css("background-image",image).fadeIn("slow");
        }
  }
 });

thanks in advance for help


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to