IE中直接運行顯示當前網(wǎng)頁中的圖片 推薦
更新時間:2006年08月31日 00:00:00 作者:
jb51修正版
使用方法直接在已打開網(wǎng)頁的IE地址欄中輸入即可
1.顯示網(wǎng)頁中的所有圖片
javascript:s='';for (i=0;i<document.images.length;i++){s+='<img src='+document.images[i].src+'><br>'};if(s!=''){document.write('<center>'+s+'</center>');void(document.close())}else{alert('No images!')}
2.顯示網(wǎng)頁中除圖片的其他
javascript:for(i=0;i<document.images.length;i++){void(document.images[i].style.visibility='hidden')}
3.網(wǎng)頁縮小0.5倍
javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)-50)+'%');}else s.setAttribute('zoom','50%')
4.網(wǎng)頁放大1.5倍
javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+50)+'%');}else s.setAttribute('zoom','150%')
5.顯示網(wǎng)頁源代碼(對于加密過的可以直接顯示其加密前的源代碼)
javascript:s=document.documentElement.outerHTML;document.write('<body></body>');document.body.innerText=s;
使用方法直接在已打開網(wǎng)頁的IE地址欄中輸入即可
1.顯示網(wǎng)頁中的所有圖片
復(fù)制代碼 代碼如下:
javascript:s='';for (i=0;i<document.images.length;i++){s+='<img src='+document.images[i].src+'><br>'};if(s!=''){document.write('<center>'+s+'</center>');void(document.close())}else{alert('No images!')}
2.顯示網(wǎng)頁中除圖片的其他
復(fù)制代碼 代碼如下:
javascript:for(i=0;i<document.images.length;i++){void(document.images[i].style.visibility='hidden')}
3.網(wǎng)頁縮小0.5倍
復(fù)制代碼 代碼如下:
javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)-50)+'%');}else s.setAttribute('zoom','50%')
4.網(wǎng)頁放大1.5倍
復(fù)制代碼 代碼如下:
javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+50)+'%');}else s.setAttribute('zoom','150%')
5.顯示網(wǎng)頁源代碼(對于加密過的可以直接顯示其加密前的源代碼)
復(fù)制代碼 代碼如下:
javascript:s=document.documentElement.outerHTML;document.write('<body></body>');document.body.innerText=s;
相關(guān)文章
JavaScript遍歷查找數(shù)組中最大值與最小值的方法示例
這篇文章主要介紹了JavaScript遍歷查找數(shù)組中最大值與最小值的方法,結(jié)合實例形式分析了javascript基于數(shù)組遍歷、判斷實現(xiàn)最大值與最小值計算的相關(guān)操作技巧,需要的朋友可以參考下2019-05-05
JavaScript實現(xiàn)的encode64加密算法實例分析
這篇文章主要介紹了JavaScript實現(xiàn)的encode64加密算法,實例分析了javascript處理encode64編碼針對字符串加密的技巧,非常簡潔實用,需要的朋友可以參考下
2015-04-04 
