that it's shown only once??
I've been trying variations on something like this with no success. The
element is replaced, but cycle doesn't show it.
function doBefore(){
var i = $(".slide").index(this);
if (i == 1){
$("#first").replaceWith("<div class='slide' id='repl' style='position:
absolute; top: 0px; left: 0px; display: none; z-index: 5; opacity: 0;
width: 640px; height: 640px;'><img src='replacement-image.jpg' /><div
class='caption'>foobar</div></div>");
}
}
No comments:
Post a Comment