zoukankan      html  css  js  c++  java
  • IE地址栏javascript代码(转)

    完全打开页面后,在该页的在地址栏或按Ctrl+O输入以下代码,回车!

    1.显示网页中的所有图片

    javascript:jannick='';for%20(i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){jannick+='<img%20src='+document.images[i7M1bQz].src+'><br>'};if(jannick!=''){document.write('<center>'+jannick+'</center>');void(document.close())}else{alert('No%20images!')}

    2.显示网页中除图片的其他

    javascript:for(jannick=0;jannick<document.images.length;jannick++){void(document.images[jannick].style.visibility='hidden')}

    3.网页缩小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.网页放大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.显示网页源代码(对于加密过的可以直接显示其加密前的源代码)

    javascript:jannick=document.documentElement.outerHTML;document.write('<body></body>');document.body.innerText=jannick;

    6.显示当前网页的COOKIE

    javascript:alert(document.cookie)

    7.让网页上的图片全部飞起来

    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function jannick(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('jannick()',5); void(0);

  • 相关阅读:
    python dict
    用Python requests beautifulSoup 获取并显示中文信息
    Python information to learn
    Python 中的异常
    Python 中的函数
    安装Linux系统Fedora 23
    (转)开源协议的比较
    WizNote for linux installation
    linux下编译bib、tex生成pdf文件
    NLP学术组织、会与论文
  • 原文地址:https://www.cnblogs.com/pyonline/p/873306.html
Copyright © 2011-2022 走看看