点一次跟随鼠标的透明图片连接后,图片连接失效! what r u talking about..can u give a sample? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <SCRIPT LANGUAGE="JavaScript">function f(e){ var img = document.getElementById("fst"); if(img) { e=e||window.event; img.style.left=e.clientX+document.body.scrollLeft-img.width/2+"px"; img.style.top=e.clientY+document.body.scrollTop-img.height/2+"px"; }}function cd(obj){ window.open('a.html','_blank'); obj.parentNode.removeChild(obj);}</SCRIPT><body onmousemove="f(event)" onscroll="f(event)"><div style="height:1000px;border:1px solid black"><a href="b.html">本站链接</a></div><img src="img.jpg" id="fst" width="20" height="20" onclick="cd(this)" style="position:absolute;z-index:99"></body>只是个例子 自己设置图片透明吧 我晕!neo_yoho 我太爱你了!你今年一定发大财,结婚没?没结婚一定娶个好老婆!有孩子没?没孩子一定生个天才出来!爱死你了! 看来楼主新年过很HAPPY吧!嘴这么甜,收了不少红包吧。:-D 那个还不兼容,下面这个才兼容<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><SCRIPT LANGUAGE="JavaScript">function f(e){ var img = document.getElementById("fst"); if(img) { e=e||window.event; img.style.left=e.clientX+document.documentElement.scrollLeft-img.width/2+"px"; img.style.top=e.clientY+document.documentElement.scrollTop-img.height/2+"px"; }}function cd(obj){ window.open('a.html','_blank'); obj.parentNode.removeChild(obj);}</SCRIPT></head><body onmousemove="f(event)" onscroll="f(event)"><div style="height:1000px;border:1px solid black"><a href="b.html">本站链接</a></div><img src="img.jpg" id="fst" width="20" height="20" onclick="cd(this)" style="position:absolute;z-index:99"></body></html> 树绑定问题 如何制作网页视频播放器 javascript如何将html代码嵌入到一个table标签里 为什么页面跳转不了 图片渐隐变换问题! WebBrowser是否可以预览打印iframe中的内容,而不是整个页面的内容? 求日期时间控件,请大家帮帮忙.谢谢! 初学jsp,请问它有没有类似msdn的东西?请告诉我在哪下载! js事件 页面多次使用同一个插件 迅雷看看代码 一个关于列表框的问题,急~~
<SCRIPT LANGUAGE="JavaScript">
function f(e)
{
var img = document.getElementById("fst");
if(img)
{
e=e||window.event;
img.style.left=e.clientX+document.body.scrollLeft-img.width/2+"px";
img.style.top=e.clientY+document.body.scrollTop-img.height/2+"px";
}
}
function cd(obj)
{
window.open('a.html','_blank');
obj.parentNode.removeChild(obj);
}</SCRIPT>
<body onmousemove="f(event)" onscroll="f(event)">
<div style="height:1000px;border:1px solid black">
<a href="b.html">本站链接</a>
</div>
<img src="img.jpg" id="fst" width="20" height="20" onclick="cd(this)" style="position:absolute;z-index:99">
</body>只是个例子 自己设置图片透明吧
嘴这么甜,收了不少红包吧。
:-D
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<SCRIPT LANGUAGE="JavaScript">
function f(e)
{
var img = document.getElementById("fst");
if(img)
{
e=e||window.event;
img.style.left=e.clientX+document.documentElement.scrollLeft-img.width/2+"px";
img.style.top=e.clientY+document.documentElement.scrollTop-img.height/2+"px";
}
}
function cd(obj)
{
window.open('a.html','_blank');
obj.parentNode.removeChild(obj);
}</SCRIPT>
</head>
<body onmousemove="f(event)" onscroll="f(event)">
<div style="height:1000px;border:1px solid black">
<a href="b.html">本站链接</a>
</div>
<img src="img.jpg" id="fst" width="20" height="20" onclick="cd(this)" style="position:absolute;z-index:99">
</body>
</html>