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无码一区二区三区
|
欧美日韩国产电影|
内射干少妇亚洲69xxx|
视频免费1区二区三区|
国产欧美日韩三级|
5g996未满十八|
妖精色av无码国产在线看|
久久99国产精品成人欧美|
日韩精品久久无码中文字幕|
亚洲国产精品尤物yw在线观看
|
亚洲日本一区二区一本一道|
男人桶女人视频不要下载
|
搡女人真爽免费视频大全软件|
久久综合给合久久狠狠狠97色|
欧美性狂猛bbbbbxxxxx|
亚洲精品字幕在线观看|
bt天堂网www天堂在线观看|
无需付费大片免费在线观看|
乱中年女人伦av一区二区|
欧美国产日韩a在线观看|
亚洲第一精品电影网|
男人女人做a视频|
公和熄小婷乱中文字幕|
美女大量吞精在线观看456|
国产乱人伦偷精品视频不卡|
麻豆安全免费网址入口|
国产欧美精品一区二区三区四区
|
欧美色视频在线观看|
人妻少妇边接电话边娇喘|
精品亚洲福利一区二区|
国产AV无码专区亚洲AV漫画|
青青青手机视频|
国产大尺度吃奶无遮无挡网|
国精无码欧精品亚洲一区|
免费精品无码AV片在线观看|
色资源二区在线视频|
色综合久久中文字幕无码|
污网站视频在线观看|
成人国产激情福利久久精品|
国产福利短视频|