制作网页特效的基本步骤:
1、document(文档)文档对象操作
2、style(样式)设置元素样式
3、event(事件)事件驱动对象,window.οnlοad=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.οncοntextmenu=new Function('event.returnValue=false;');
document.onselectstart=new Function('event.returnValue=false;');
});