jeudi 1 mai 2014

jQuery load() images from different page and use them in script


Vote count:

0




I want to use the load() function from jQuery to get images from address, for example load-images.php


load-images.php looks like:



<div id="smth">

<p><img src="images/test1.jpg" /></p>
<p><img src="images/test2.jpg" /></p>
<p><img src="images/test3.jpg" /></p>
<p><img src="images/test4.jpg" /></p>
<p><img src="images/test5.jpg" /></p>
<p><img src="images/test6.jpg" /></p>
<p><img src="images/test7.jpg" /></p>
<p><img src="images/test8.jpg" /></p>
<p><img src="images/test9.jpg" /></p>
<p><img src="images/test10.jpg" /></p>

</div>


I need to make a function that reads all images from file load-images.php and use them in slider script (Basic jQuery Slider). I want loaded images use in slider.


Here is LIVE DEMOS:

1) http://ift.tt/PU25vY

2) http://ift.tt/PU26Ab (same demo in jsfiddle.net for making working example)


So far i made this code:


Have u any advice ? Thanks!



asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire