日期:2014-05-16 浏览次数:20316 次
<script> function callAction(){ alert("点我了"); $.ajax({ url: "assodynshow.action", type: "post", dataType: "json", timeout: 1000, error: function(){ alert("Error loading XML document"); }, success: function(json){ var list = json.list; var photos= new Array(); $.each(list,function(i){ photos[i]=list[i].NPic; alert(photos[i]); }) } }); }//这一段打印出来了图片地址
//下面的代码静态图片可以播放 <body> <div id="idShow" class="container"> </div> <script> var r = new RevealTrans("idShow"); //添加变换对象 r.Add( 'http://images.cnblogs.com/cnblogs_com/cloudgamer/143727/r_rt_1.jpg', '图片变换效果', 'http://www.cnblogs.com/cloudgamer/archive/2008/05/23/1205642.html'); r.Add( 'http://images.cnblogs.com/cnblogs_com/cloudgamer/143727/r_rt_2.jpg', '图片滑动展示效果', 'http://www.cnblogs.com/cloudgamer/archive/2008/05/13/1194272.html'); r.Add( 'http://images.cnblogs.com/cnblogs_com/cloudgamer/143727/r_rt_3.jpg', '图片切换展示效果', 'http://www.cnblogs.com/cloudgamer/archive/2008/07/06/1236770.html'); r.Start(); </script> </body>