JS特效代碼--下拉透明菜單
2007/1/27 14:53:10

<script language="JavaScript">
var mmenus = new Array();
var misShow = new Boolean();
misShow=false;
var misdown = new Boolean();
misdown=false;
var mnumberofsub=0;
var musestatus=false;
var mpopTimer = 0;
mmenucolor='#89CB10';mfontcolor='MenuText';mmenuoutcolor='#ADEF34';mmenuincolor='#B5E74E';mmenuoutbordercolor='#ECFA3A';mmenuinbordercolor='#5A2614';mmidoutcolor='#A9DA1D';mmidincolor='#799310';mmenuovercolor='#004080';mitemedge='0';msubedge='1';mmenuunitwidth=66;mmenuitemwidth=140;mmenuheight=25;mmenuwidth='100%';mmenuadjust=0;mmenuadjustV=0;mfonts='font-family: 宋體; font-size: 9pt; color: MenuText; ';mcursor='hand';
var swipeSteps = 4;
var swipemsec = 25;
var swipeArray = new Array();
function swipe(el, dir, steps, msec) {
if (steps == null) steps = swipeSteps;
if (msec == null) msec = swipemsec;
if (el.swipeIndex == null)
el.swipeIndex = swipeArray.length;
if (el.swipeTimer != null)
window.clearTimeout(el.swipeTimer);
swipeArray[el.swipeIndex] = el;
el.style.clip = "rect(-99999, 99999, 99999, -99999)";
if (el.swipeCounter == null || el.swipeCounter == 0) {
el.orgLeft = el.offsetLeft;
el.orgTop = el.offsetTop;
el.orgWidth = el.offsetWidth;
el.orgHeight = el.offsetHeight;
}
el.swipeCounter = steps;
el.style.clip = "rect(0,0,0,0)";
window.setTimeout("repeat(" + dir + "," + el.swipeIndex + "," + steps + "," + msec + ")", msec);
}
function repeat(dir, index, steps, msec) {
el = swipeArray[index];
var left = el.orgLeft;
var top = el.orgTop;
var width = el.orgWidth;
var height = el.orgHeight;
if (el.swipeCounter == 0) {
el.style.clip = "rect(-99999, 99999, 99999, -99999)";
return;
}
else {
el.swipeCounter--;
el.style.visibility = "visible";
switch (dir) {
case 2:
el.style.clip = "rect(" + height*el.swipeCounter/steps + "," + width + "," + height + "," + 0 + ")";
el.style.top = top - height*el.swipeCounter/steps;
break;
case 8:
el.style.clip = "rect(" + 0 + "," + width + "," + height*(steps-el.swipeCounter)/steps + "," + 0 + ")";
el.style.top = top + height*el.swipeCounter/steps;
break;
case 6:
el.style.clip = "rect(" + 0 + "," + width + "," + height + "," + width*(el.swipeCounter)/steps + ")";
el.style.left = left - width*el.swipeCounter/steps;
break;
case 4:
el.style.clip = "rect(" + 0 + "," + width*(swipeSteps - el.swipeCounter)/steps + "," + height + "," + 0 + ")";
el.style.left = left + width*el.swipeCounter/steps;
break;
}

el.swipeTimer = window.setTimeout("repeat(" + dir + "," + index + "," + steps + "," + msec + ")", msec);
}
}
var mtmpleft="";
var mtmptop="";
function hideSwipe(el) {
window.clearTimeout(el.swipeTimer);
el.style.visibility = "hidden";
el.style.clip = "rect(-99999, 99999, 99999, -99999)";
el.swipeCounter = 0;
if(mtmpleft!="")el.style.left = mtmpleft;
if(mtmptop!="")el.style.top = mtmptop;
}
function stoperror(){
return true;
}
window.onerror=stoperror;
function mpopOut() {
mpopTimer = setTimeout('mallhide()', 500);
}
function getReal(el, type, value) {
temp =

下一頁
返回列表
返回首頁 主站蜘蛛池模板: 亚洲国产欧美日韩第一香蕉| 日韩av无码精品一二三区| 四虎4hu永久在线观看| 欧美77777| 国产线路中文字幕| eeuss影院在线观看| 扒开女同学下面粉粉嫩嫩| 久久精品电影免费动漫| 欧美变态口味重另类在线视频| 人妖系列免费网站观看| 精品深夜av无码一区二区老年 | 天啪天天久久天天综合啪| 中文字幕の友人北条麻妃| 日本牲交大片无遮挡| 亚洲AV色香蕉一区二区三区蜜桃| 欧美精品一区二区三区在线| 免费一区二区视频| 精品国产午夜理论片不卡| 国产99久9在线视频| 韩国爱情电影妈妈的朋友| 国产无遮挡无码视频免费软件 | 美女内射毛片在线看3D| 国产亚洲精品无码专区| 国产又污又爽又色的网站| 国产精品亚洲精品青青青| 91在线国内在线播放大神| 天堂а√在线最新版在线| z0z0z0女人极品另类视频| 成人免费午夜视频| 中文字幕日本精品一区二区三区| 日本无卡无吗在线| 久久精品人人槡人妻人人玩| 欧洲动作大片免费在线看| 亚洲国产欧美日韩精品小说| 欧美色图你懂的| 亚洲精品成人片在线播放| 狠狠干最新网址| 人人添人人澡人人澡人人人爽| 男女边吃奶边做边爱视频| 免费无码成人AV片在线在线播放 | 99久久久国产精品免费蜜臀|