<html>
<head>
<title>Pop-up Link with Description</title>
<style type="text/css">
.transparent {
filter:alpha(opacity=90);
background-color:green;
display:none;
width:170;
height:100;
position:absolute;
color: white;
border: 1 green solid;
}
</style>
<script>
// this function shows the pop-up when user moves the mouse over the link
function Show()
{
x = event.clientX + document.body.scrollLeft; // get the mouse left position
y = event.clientY + document.body.scrollTop + 35; // get the mouse top position
Popup.style.display="block"; // display the pop-up
Popup.style.left = x; // set the pop-up's left
Popup.style.top = y; // set the pop-up's top
}
// this function hides the pop-up when user moves the mouse out of the link
function Hide()
{
Popup.style.display="none"; // hide the pop-up
}
</script>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<a href="" onMouseOut="Hide()" onMouseOver="Show()" onMouseMove="Show()">Move the mouse over here</a><br>
<br>
Move your move over the link above<br>
and the pop-up appears. And the pop-up<br>
follows your mouse as long as your mouse<br>
is still over the link.
<div id="Popup" class="transparent">
<div style="background-color: #003366"><b>Title goes here</b></div>
<div></b>Description goes here</div>
</div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
Transparent pop-up link with desciption using JavaScript and CSS
共1个文件
htm:1个
需积分: 0 2 下载量 17 浏览量
2008-10-23
16:48:40
上传
评论
收藏 770B ZIP 举报
温馨提示
Transparent pop-up link with desciption using JavaScript and CSS。
资源详情
资源评论
资源推荐
收起资源包目录
Transparent pop-up link with desciption using JavaScript and CSS.zip (1个子文件)
TransparentPopUpSource.htm 1KB
共 1 条
- 1
领君2018
- 粉丝: 204
- 资源: 1527
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0