What's Here?
- Members: 131,099
- Replies: 468,506
- Topics: 72,572
- Snippets: 2,532
- Tutorials: 661
- Total Online: 2,135
- Members: 61
- Guests: 2,074
Who's Online?
|
This is a pop-up window over a link or word(s)
|
Submitted By: zakary
|
|
|
Rating:
|
|
Views: 5,624 |
Language: JavaScript
|
|
Last Modified: May 13, 2005 |
Instructions: style in
and in body to call style and display pop-up info |
Snippet
<html>
<head>
<title>Pop Up</title>
<style type="text/css">
#popupBox{
position: absolute;
top: 35px;
left: 10px;
border: solid 1px #000000;
background-color: #FFFF99;
visibility: hidden;
}
</style>
<script language="JavaScript">
function show_it(){
document.all.popupBox.style.visibility = "visible";
}
function hide_it(){
document.all.popupBox.style.visibility = "hidden";
}
</script>
</head>
<body>
<a href="javascript://" onMouseOver="show_it()" onMouseOut="hide_it()">Link for pop-up here</a>
<div id="popupBox">
<p>This is the info you want displayed in the pop-up window</p>
<p>This is the next line of the pop-up</p>
</div>
</body>
</html>
Copy & Paste
|
|
|
Programming
Web Development
Reference Sheets
Bye Bye Ads
Free DIC T-Shirt
Related Sites
Monthly Drawing
Partners
Top Contributors
Top 10 Kudos This Month
|