Jump to content

help with popup box


stevehossy

Recommended Posts

I got this script, when you mouseover a link a popup box appears. THis is what i want, but can someone please redo this script for me so that it doesnt have to be a link? I tried to just remove the </a> but it messes up the script. Here it is. Thanks!

 

<!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" xml:lang="en" lang="en">
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
<!--
.linkpopup {
position: relative;
}

.linkpopup span {
background-color: #ccc;
border: 1px solid #000;
display: block;
left: 0;
padding: .25em;
position: absolute;
top: -1.75em;
}

.linkpopup:link span,
.linkpopup:visited span {
visibility: hidden;
}

.linkpopup:hover span,
.linkpopup:focus span,
.linkpopup:active span {
color: #000;
text-decoration: none;
visibility: visible;
}
-->
</style>

</head>
<body>
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<a href="blah.html" class="linkpopup">Link text <span>Description text</span></a>
</body>
</html>

Link to comment
Share on other sites

Forum Rules:

 

7. Don't ask someone to write or re-write a script for you, unless you are posting a message to the Freelancing Forum. The forums are not the place to request XYZ script. This is a community of people learning PHP, and not a script location service. Try searching SourceForge, PHP Classes, HotScripts, or Google.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.