js文件中
PImgPlayer.addItem( "CLASH", "http://www.xuekaifa.com/index2.html", "images/02.jpg"); 
点击图片就会跳转到http://www.xuekaifa.com/index2.html,但是是新开了一个浏览器然后跳转,怎么让它在本页面进行跳转图片js图片轮播

解决方案 »

  1.   

    要去看这个addItem方法里面的代码了
      

  2.   

    我的jsp文件中的主体部分就是这个<div id="imgADPlayer"></div> 
    <script> 
    PImgPlayer.addItem( "倒霉熊", "http://localhost:8081/Shopping/ShowGoodsClServlet?type=showDetail&goodsid=1", "images/01.jpg"); 
    PImgPlayer.addItem( "CLASH", "http://localhost:8081/Shopping/ShowGoodsClServlet?type=showDetail&goodsid=2", "images/02.jpg"); 
    PImgPlayer.addItem( "红楼梦", "http://localhost:8081/Shopping/ShowGoodsClServlet?type=showDetail&goodsid=3"); 
    PImgPlayer.addItem( "三国", "http://localhost:8081/Shopping/ShowGoodsClServlet?type=showDetail&goodsid=4"); 
    PImgPlayer.addItem( "吸血鬼日记", "http://localhost:8081/Shopping/ShowGoodsClServlet?type=showDetail&goodsid=5", "images/05.jpg"); 
    PImgPlayer.init( "imgADPlayer", 120, 195);   
    </script>