javascript - How to add a PHP variable into my Jquery image slider? -
i'm using jquery image slider, , want add couple of things it.
when load full-size image, want show 2 divs, 1 image title , other description of picture i'm new javascript , can't work out how it.
i have tried adding document.write commands javascript code test it, outputs text on blank page, want appear when image loaded , can position divs want them.
i appreciate help, in advance!
jquery code:
$("img.thumb").click(function(){ $("#fp_gallery").append("<div/>").text("description"); $("#fp_gallery").prepend("<div/>").text("title"); }
try this. based on demo site.
Comments
Post a Comment