加入收藏 - 网站地图 - 网站搜索 -
阅读新闻

类似Windows的弹出式帮助

[日期:01-22] 来源:  作者: [字体: ]

<html>
<head>
<title>网页特效|Linkweb.cn/Js|---类似Windows的弹出式帮助</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<OBJECT
id=pophelp
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
>
<PARAM name="Command" value="HH Version">
</OBJECT>

<script language=javascript>
popstyle= "Verdana,10,,";//弹出式帮助字体设定

function showPophelp(helpstr,w,h,Foreground,Background){
if (body.style.cursor=='help')
pophelp.TextPopup(helpstr,popstyle,w,h,Foreground,Background);
}

document.onclick=resetCursor
function resetCursor(){
if (!(event.srcElement.innerText=="?"))
body.style.cursor='default';
}
</script>


<body id=body style="cursor:default;">

<span onclick="javascript :body.style.cursor='help';" style="cursor:help;"><big><b>?</b></big></span>(说明:先点击前面"?"符号,当鼠标样式变为"求助"时,点击下面文字。)<br>

<br>
         <span onclick="showPophelp('这是弹出式帮助',20,20,0,255)">弹出式帮助</span><br><br>

         <span onclick="showPophelp('我是wingfancy,欢迎大家一起讨论网络编程技术。',20,120,0,0)">wingfancy</span><br><br>

         <span onclick="showPophelp('wingfancy@webtsp.net',20,20,0,0)">电子信箱</span><br><br>

         <span onclick="showPophelp('http://www.5meng.com',20,20,0,0)">网址</span><br><br>


</body>
</html>



评论 】 【 推荐 】 【 打印
上一篇:不用js就将一个对象定位在页面顶部并随页面滚动
下一篇:模拟滚动条
相关新闻       特效代码