<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript"> var picArr=new Array("1.jpg","2.jpg","3.jpg","4.jpg","5.jpg"); var index=0; function next(){ index++; if(index==picArr.length){ i=0; } document.getElementById("ol").src=picArr[index]; } </script> </head><body> <img id="ol" src="1.jpg" width="500" height="300"/></br><input type="button" value="下一张" onclick="next"/><input type="button" value="上一张" onclick=""/></body></html>
添加回答
举报
0/150
提交
取消