hi ,

i want to do a program which can display a stack of image. the image name is in order (1.jpg, 2.jpg, 3.jpg, 4.jpg .... 10000.jpg) , i have do the code but it have error. can anyone help me to detect where is the fault ? thanks in advance


<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
for(var img_num=1;img_num<=1000;img_num++){
$('#hiden-img').attr('src', 'C:/Users/Yue/Desktop/images/'+img_num+'.jpg');
var img = $('#hiden-img');
$('#real-image').attr('src', img.attr('src'));
<img id="hiden-img" style="display:none;"/>
<img id="real-image" src="C:/Users/Yue/Desktop/images/0.jpg"/>