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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -