跟随鼠标的图片代码
将以下代码分别加入到网页的<head>蓝色字体部分</head>和<body>黄色字体部分</body>区域,绿色代码表示跟随鼠标的图片,可以替换成自己的图片,注意路径一定要正确。Q5k,v few5we7t^ g
[b]<html>[/b]5D1NT\+Q e4f7v
[b]<head>
[/b]<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>捌玖网络网页特效|[url]www.89w.org[/url]|---跟随鼠标的图片</title>
[b][code]<script LANGUAGE="JavaScript">
var newtop=05Mpp C~j(t
var newleft=0
if (navigator.appName == "Netscape") {
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
}"CCe Oe
else%E/D r q;Zhu
{:l~Z2Yj/h#N.I#\X
layerStyleRef="layer.style.";!] r~R1pl2Hg
layerRef="document.all";
styleSwitch=".style";
}3|0fDt[;M1tdt
function doMouseMove() {
layerName = 'iit'-b-H+j ` ^.nk ka
eval('var curElement='+layerRef+'["'+layerName+'"]')
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"') z0eh"K;Y\ ^
eval('curElement'+styleSwitch+'.visibility="visible"')
eval('newleft=document.body.clientWidth-curElement'+styleSwitch+'.pixelWidth')
eval('newtop=document.body.clientHeight-curElement'+styleSwitch+'.pixelHeight')
eval('height=curElement'+styleSwitch+'.height')