08 2011 档案

摘要:前端页面代码:<a href="javascript:bookmarkit()">加入收藏</a>JS代码:显示JS代码<script type="text/javascript">function bookmarkit(){ // window.external.addFavorite(document.URL,document.title); var ua = navigator.userAgent.toLowerCase(); if(ua.indexOf("msie 8")>-1){ e 阅读全文
posted @ 2011-08-02 14:55 妙計出自山人 阅读(334) 评论(0) 推荐(0) 编辑
摘要:相关代码如下,其中,取得弹出大图的url,也可以写成(".jpg",".jpg"),实例化中,mode_right是所要获取的ID显示代码 1 <script type="text/javascript"> 2 function ImgShow(evt){ 3 var imgTag=(window.event)?event.srcElement:evt.target; 4 var imgPath=imgTag.src.replace("abc.jpg",".jpg");//取得弹出的 阅读全文
posted @ 2011-08-02 11:26 妙計出自山人 阅读(10796) 评论(0) 推荐(0) 编辑