分享
 
 
 

能移动的超级连接特效(比较酷)

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

<style>

.fly {color:336c6c;font-family:arial;font-size:24px;position:absolute;

visibility:hidden;z-index:2;}

.logo {font-family: times;font-size:48px;color:blue;

position:absolute;top:0px;left:70px;

visibility:visible;z-index:1;}

.desc {text-align: center;font-family:楷体_GB2312;

font-size:18px;color: #336c6c;position:absolute;top:220px;

left: 140px;width:400px;visibility:hidden;

z-index:0;}

BODY {background:#c0c0c0;}

A {color:lime;}

A:HOVER {color : yellow;}

</style>

<script LANGUAGE="JavaScript">

ns4 = (document.layers)? true:false

ie4 = (document.all)? true:false

function showObject(obj) {

if (ns4) obj.visibility = "show"

else if (ie4) obj.visibility = "visible"

}

function hideObject(obj) {

if (ns4) obj.visibility = "hide"

else if (ie4) obj.visibility = "hidden"

}

function slideLogo(from, to) {

if (from < to) {

company.top = (from += 10);

setTimeout('slideLogo(' + from + ',' + to + ')', 20);

}

else initObjects();

}

function rotateObjects() {

for (var i = 0; i < pos.length; i++) {

pos[i] += inc; objects[i].visibility = 'visible';

objects[i].left = (r * Math.cos(pos[i])) + xoff

}

rotateTimer = setTimeout("rotateObjects()", 50);

}

function initObjects() {

objects = new Array(fly1, fly2, fly3, fly4);

pos = new Array();

pos[0] = 0;

for (var i = 1; i < objects.length; i++) {

pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / objects.length));

}

rotateObjects();

}

/* Variables for rotating objects */

var objects;

var pos;

var r = 160; // radius

var xoff = 280; // x offset

var yoff = 170; // y offset

var pi = Math.PI; // get pi

var inc = pi / 180; // degrees per rotation cycle

var objects; // objects to be rotated

var pos; // position for objects

</script>

<body BGCOLOR="#c0c0c0" link="green" TEXT="black">

<div ID="fly1" CLASS="fly"><a HREF="#" onMouseOver="showObject(desc1)"

onMouseOut="hideObject(desc1)">

<p>Item 1</a><br></p>

</div><div ID="fly2" CLASS="fly"><a HREF="#" onMouseOver="showObject(desc2)"

onMouseOut="hideObject(desc2)">

<p>Item 2</a><br></p>

</div><div ID="fly3" CLASS="fly"><a HREF="#" onMouseOver="showObject(desc3)"

onMouseOut="hideObject(desc3)">

<p>Item 3</a><br></p>

</div><div ID="fly4" CLASS="fly"><a HREF="#" onMouseOver="showObject(desc4)"

onMouseOut="hideObject(desc4)">

<p>Item 4</a><br></p>

</div><div ID="company" CLASS="logo">

<p><small>WELCOME TO DREAM WORKROOM</small></p>

</div><div ID="desc1" CLASS="desc">

<p>Item 1的内容 </p>

</div><div ID="desc2" CLASS="desc">

<p>Item 2的内容 </p>

</div><div ID="desc3" CLASS="desc">

<p>Item 3的内容 </p>

</div><div ID="desc4" CLASS="desc">

<p>Item 4的内容 </p>

</div><script LANGUAGE="JavaScript">

/* Simple version detection */

var isNS = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >=

4);/* They can be used in placeof hidden and visible because on occasion Navigator

has problems with the two */

var HIDDEN = (isNS) ? 'hide' : 'hidden';

var VISIBLE = (isNS) ? 'show' : 'visible';

/* Create shortcut variables for different absolutely positioned elements */

var fly1 = (isNS) ? document.fly1 : document.all.fly1.style;

var fly2 = (isNS) ? document.fly2 : document.all.fly2.style;

var fly3 = (isNS) ? document.fly3 : document.all.fly3.style;

var fly4 = (isNS) ? document.fly4 : document.all.fly4.style;

var company = (isNS) ? document.company : document.all.company.style;

var desc1 = (isNS) ? document.desc1 : document.all.desc1.style;

var desc2 = (isNS) ? document.desc2 : document.all.desc2.style;

var desc3 = (isNS) ? document.desc3 : document.all.desc3.style;

var desc4 = (isNS) ? document.desc4 : document.all.desc4.style;

/* Begin the sliding of the company logo */

slideLogo(0, 140);

</script>

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
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- 王朝網路 版權所有