鼠标事件:鼠标点击出现下拉菜单,很基础的一个特效。先上代码
varintDelay=30;//设置菜单显示速度,越大越慢varintInterval=5;functionMenuClick(){if(LayerMenu.style.display==""){GradientClose();}else{LayerMenu.filters.alpha.opacity=0;LayerMenu.style.display="";GradientShow();}}functionGradientShow(){LayerMenu.filters.alpha.opacity+=intInterval;if(LayerMenu.filters.alpha.opacity<100)setTimeout("GradientShow()",intDelay);}functionGradientClose(){LayerMenu.filters.alpha.opacity-=intInterval;if(LayerMenu.filters.alpha.opacity>0){setTimeout("GradientClose()",intDelay);}else{LayerMenu.style.display="none";}}A{FONT-SIZE:10px;COLOR:#666666;LINE-HEIGHT:16px;FONT-FAMILY:"tahoma";TEXT-DECORATION:none}TD{FONT-SIZE:10px;COLOR:#999999;LINE-HEIGHT:16px;FONT-FAMILY:"tahoma"}|
|
|
|
|
|
|