stevehossy Posted March 23, 2009 Share Posted March 23, 2009 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> Quote Link to comment https://forums.phpfreaks.com/topic/150666-help-with-popup-box/ Share on other sites More sharing options...
haku Posted March 23, 2009 Share Posted March 23, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/150666-help-with-popup-box/#findComment-791531 Share on other sites More sharing options...
jlhaslip Posted March 23, 2009 Share Posted March 23, 2009 the trouble with removing the Anchor tag would be that IE6 and earlier only recognize :hover on Anchors. Quote Link to comment https://forums.phpfreaks.com/topic/150666-help-with-popup-box/#findComment-791534 Share on other sites More sharing options...
stevehossy Posted March 24, 2009 Author Share Posted March 24, 2009 oh sorry i did not know that Quote Link to comment https://forums.phpfreaks.com/topic/150666-help-with-popup-box/#findComment-792287 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.