制作网页特效的基本步骤:
    1、document(文档)文档对象操作
    2、style(样式)设置元素样式
    3、event(事件)事件驱动对象,window.onload=function(){//code}
    4、setInterval(间隔)设定间隔,clearInterval取消时间隔;setTimeout、clearTimeout
    5、offset(偏移量)改变元素位置

    其它
    1.关于“||”的应用;
    var obj = window.obj || {}; //当obj不为空(''、null、undefind、false、0)
    var c = window.c || 3000;   //当o不为0时

    2.网页禁止右键、禁止查看源代码、禁止复制的代码
    (function(){
        document.oncontextmenu=new Function('event.returnValue=false;');
        document.onselectstart=new Function('event.returnValue=false;');
    });

  

相关文章:

  • 2021-08-21
  • 2021-10-11
  • 2022-12-23
  • 2021-07-16
  • 2021-07-29
  • 2022-02-14
  • 2021-11-09
猜你喜欢
  • 2021-11-19
  • 2022-01-01
  • 2021-11-17
  • 2022-01-28
  • 2021-11-08
  • 2022-12-23
  • 2022-01-10
相关资源
相似解决方案