2006-11-10

推荐几个入门级的JS特效代码

来源: 天极网 作者:佚名 评论 0 条
 
src.style.backgroundColor='';
src.style.color=mfontcolor;

}
function mallhide(){
for(var nummenu=0;nummenu<mmenus.length;nummenu ){
var themenu=document.all['mMenu' nummenu]
var themenudiv=document.all['mmenudiv' nummenu]
mnochange(themenu);
mmenuhide(themenudiv);
}
for(nummenu=1;nummenu<=mnumberofsub;nummenu ){
var thesub=document.all['msubmenudiv' nummenu]
msubmenuhide(thesub);
mnochange(document.all['mp' nummenu]);
document.all["mitem" nummenu].style.color=mfontcolor;
}
}
function mmenuhide(menuid){
menuid.style.filter='Alpha(Opacity=100)';
hideSwipe(menuid);
misShow=false;
}
function msubmenuhide(menuid){
menuid.style.filter='Alpha(Opacity=100)';
menuid.style.visibility='hidden';
}
function mmenushow(menuid,pid){
menuid.style.filter='Alpha(Opacity=80)';
menuid.style.left=mposflag.offsetLeft pid.offsetLeft mmenuadjust;menuid.style.top=

mposflag.offsetTop mmenutable.offsetHeight mmenuadjustV;
if(mmenuitemwidth parseInt(menuid.style.left)>document.body.clientWidth document.body.scrollLeft)
menuid.style.left=document.body.clientWidth document.body.scrollLeft-mmenuitemwidth;
mtmpleft=menuid.style.left;mtmptop=menuid.style.top;swipe(menuid,2,4);
misShow=true;
}
function mshowsubmenu(menuid,pid,rid){
menuid.style.filter='Alpha(Opacity=80)';
menuid.style.left=pid.offsetWidth rid.offsetLeft;
menuid.style.top=pid.offsetTop rid.offsetTop-3;
if(mmenuitemwidth parseInt(menuid.style.left)>document.body.clientWidth document.body.scrollLeft)
menuid.style.left=document.body.clientWidth document.body.scrollLeft-mmenuitemwidth;
menuid.style.visibility='visible';
}
function mmenu_over(menuid,x){
toel = getReal(window.event.toElement, "className", "coolButton");
fromel = getReal(window.event.fromElement, "className", "coolButton");
if (toel == fromel) return;
if(x<0){
misShow = false;
mallhide();
mtoout(eval("mMenu" x));
}else{

mallhide();
mtoin(eval("mMenu" x));
mmenushow(menuid,eval("mMenu" x));

}
clearTimeout(mpopTimer);
}
function mmenu_out(x){
toel = getReal(window.event.toElement, "className", "coolButton");
fromel = getReal(window.event.fromElement, "className", "coolButton");
if (toel == fromel) return;
if (misShow){
mtoin(eval("mMenu" x));
}else{
mnochange(eval("mMenu" x));
}
mpopOut()
}
function mmenu_down(menuid,x){
if(misShow){
mmenuhide(menuid);
mtoout(eval("mMenu" x));
}
else{
mtoin(eval("mMenu" x));
mmenushow(menuid,eval("mMenu" x));
misdown=true;
}
}
function mmenu_up(){
misdown=false;
}
function mmenuitem_over(menuid,item,x,j,i){
共20页: 上一页 [1] [2] [3] [4] [5] [6] [7] 8 [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] 下一页

(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:Html 书签的使用  
下一篇:DHTML实现可控制的页面内滚动区域
    评论加载中…

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号