5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2017-08-08
http://allinhands.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2004/09/06 | COLL LINKS
类别(JScript)
|
评论
(0)
|
阅读(105)
|
发表于 11:01
<html> <head> <title> </title> <script language="JavaScript"> <!-- spot_width = 50 brightness = 6 function highlight() { var linkQty = document.getElementsByTagName('a') for(a=0;a<linkQty.length;a++) { if(document.getElementsByTagName('a')[a].type=='fader') { hlink=document.getElementsByTagName('a')[a] hlink_centerX=hlink.offsetLeft+(hlink.offsetWidth/2) hlink_centerY=hlink.offsetTop+(hlink.offsetHeight/2) distance = Math.round(Math.sqrt(((event.x-hlink_centerX)*(event.x-hlink_centerX)) + ((hlink_centerY-event.y)*(hlink_centerY-event.y))))+spot_width if (isNaN(distance))distance = 0 if(distance>255)distance=255 val=(255-distance) var col=toHex(val) hlink.style.color = '#'+col+'AF'+col } } } function toHex(hex) { var hex_val = hex.toString(16).toUpperCase(); if (hex_val.length == 1){ var temp = "0" + hex_val hex_val = temp; } return hex_val } document.onmousemove=highlight //--> </script> </head> <body> <center> <span style="font-family:ms sans serif;font-size:25;z-index:0;"><u>Cool Links</u> <br><br> <font size="2" face="ms sans serif"> <ul> <li>Easy to change characteristics. </ul> </font> <br><br> <font size="2" face="ms sans serif"> <br> The links in the text below will begin changing color as the mouse moves closer to or farther from them. <br><br> Text Text Text Text Text <a href="javascript:void(0)" type="fader" style="color:00AF0C;font-family:verdana;font-size:10;"><b>Link Item</b></a> Text Text Text Text <a href="javascript:void(0)" type="fader" style="color:00AF0C;font-family:verdana;font-size:10;"><b>Link Item</b></a> Text Text Text Text <a href="javascript:void(0)" type="fader" style="color:00AF0C;font-family:verdana;font-size:10;"><b>Link Item</b></a> Text Text Text Text Text<br> </font> </center> </body> </html>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
0
评论
Comments
日志分类
首页
[102]
.Net
[11]
VBScript
[1]
JScript
[51]
XML
[3]
HTML&CSS
[9]
ASP
[8]
ActiveX
[4]
Software
[10]
Other
[5]