分享
 
 
 

常见网页可上下移动的右侧广告特效代码

王朝html/css/js·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

<!-- 完整的HTML代码如下: -->

<!-- web http://www.knowsky.com -->

<!-- bbs http://www.knowsky.com/bbs-->

<html>

<head>

<title>网页教学网特效代码->>COOL菜单</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script language="JavaScript">

var currTimerlinePoint = 0;

var totalTimerlineFrames = 2;

var timerlineTimer;

var leftLine = 50;

var timerIn;

var timerOut;

var timerlineArray = new Array();

timerlineArray[0]='';

timerlineArray[1]='menuItemOut()';

function runTimerline()

{

//if (totalTimerlineFrames > currTimerlinePoint)

// {

// eval( timerlineArray[currTimerlinePoint]);

// currTimerlinePoint ++;

// }

//else {currTimerlinePoint = 0; clearTimeout(window.timerlineTimer); return false;}

//window.timerlineTimer = setTimeout('runTimerline()',1000);

window.timerlineTimer = setTimeout('menuItemOut()',500);

}

function stopTimerline()

{

clearTimeout(window.timerlineTimer);

//currTimerlinePoint = 0;

}

function menuItemIn()

{

if( leftLine != 150)

{

item11.style.pixelLeft += 20; item11.filters.alpha.opacity += 20;

item12.style.pixelLeft -= 20; item12.filters.alpha.opacity += 20;

item13.style.pixelLeft += 20; item13.filters.alpha.opacity += 20;

item14.style.pixelLeft -= 20; item14.filters.alpha.opacity += 20;

item15.style.pixelLeft += 20; item15.filters.alpha.opacity += 20;

item16.style.pixelLeft -= 20; item16.filters.alpha.opacity += 20;

item17.style.pixelLeft += 20; item17.filters.alpha.opacity += 20;

item18.style.pixelLeft -= 20; item18.filters.alpha.opacity += 20;

item19.style.pixelLeft += 20; item19.filters.alpha.opacity += 20;

item20.style.pixelLeft -= 20; item20.filters.alpha.opacity += 20;

leftLine += 20;

}

else

{

clearTimeout(window.timerIn);

return false;

}

timerIn=window.setTimeout('menuItemIn()',1);

}

function menuItemOut()

{

clearTimeout(window.timerIn);

if (leftLine != 50)

{

item11.style.pixelLeft -= 20; item11.filters.alpha.opacity -= 20;

item12.style.pixelLeft += 20; item12.filters.alpha.opacity -= 20;

item13.style.pixelLeft -= 20; item13.filters.alpha.opacity -= 20;

item14.style.pixelLeft += 20; item14.filters.alpha.opacity -= 20;

item15.style.pixelLeft -= 20; item15.filters.alpha.opacity -= 20;

item16.style.pixelLeft += 20; item16.filters.alpha.opacity -= 20;

item17.style.pixelLeft -= 20; item17.filters.alpha.opacity -= 20;

item18.style.pixelLeft += 20; item18.filters.alpha.opacity -= 20;

item19.style.pixelLeft -= 20; item19.filters.alpha.opacity -= 20;

item20.style.pixelLeft += 20; item20.filters.alpha.opacity -= 20;

leftLine -= 20;

}

else

{

clearTimeout(window.timerOut);

return false;

}

timerOut=window.setTimeout("menuItemOut()",1);

}

self.moveTo(0,0);

self.resizeTo(screen.availWidth,screen.availHeight);

</script>

</head>

<body bgcolor="#FFFFFF" text="#000000">

<div style="position:absolute; left:0px; top:-30px"><div align=center id="menu01" style="position:absolute; left:150px; top:33px; width:100px; height:19px; z-index:1; background-color: #000099; layer-background-color: #000099; border: 1px none #000000;padding-top:3;cursor:hand;font-size:9pt" onmouseover='stopTimerline();menuItemIn()' onmouseout='runTimerline()'><font color=white>主菜单</div>

<div align=center id="item11" style="position:absolute; left:50px; top:55px; width:99px; height:19px; z-index:2; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:4;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项一</div>

<div align=center id="item12" style="position:absolute; left:250px; top:77px; width:99px; height:19px; z-index:3; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项二</div>

<div align=center id="item13" style="position:absolute; left:50px; top:99px; width:99px; height:19px; z-index:4; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项三</div>

<div align=center id="item14" style="position:absolute; left:250px; top:121px; width:99px; height:19px; z-index:5; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项四</div>

<div align=center id="item15" style="position:absolute; left:50px; top:143px; width:99px; height:19px; z-index:6; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项五</div>

<div align=center id="item16" style="position:absolute; left:250px; top:165px; width:99px; height:19px; z-index:6; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项六</div>

<div align=center id="item17" style="position:absolute; left:50px; top:187px; width:99px; height:19px; z-index:6; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项七</div>

<div align=center id="item18" style="position:absolute; left:250px; top:209px; width:99px; height:19px; z-index:6; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项八</div>

<div align=center id="item19" style="position:absolute; left:50px; top:231px; width:99px; height:19px; z-index:6; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项九</div>

<div align=center id="item20" style="position:absolute; left:250px; top:253px; width:99px; height:19px; z-index:6; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000; filter:alpha(opacity=0);padding-top:3;cursor:hand;font-size:9pt"

onmouseover="this.style.backgroundColor= '#006699';stopTimerline()"

onmouseout="this.style.backgroundColor= '#0099cc';runTimerline()">菜单项十</div></div>

</body></html>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有