PDA

View Full Version : Popup Blocker Generator Help



searson1
04-20-2007, 07:17 AM
1) Script Title: Popup Blocker Generator

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/popwin.htm

3) Describe problem: Hi all - The Popup Blocker works just fine and does mostly what I want it to do. However, I would like the link text that is created to to turn white on hover. Any ideas how I could do this please? The working code is below. I would be very appreciative if anyone could help me here.

I did try emailing the author of the script, but the given email address no longer appears to be active.


<a href="Rex36.htm" onclick="NewWindow(this.href,'mywin','300','300','no','center');return false" onfocus="this.blur()" style="text-decoration: none"><font color="#000080">Rex 36&nbsp; <span style="font-variant: small-caps">&gt;</span></font></a>

jscheuer1
04-20-2007, 07:29 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a.poplink {
color:#000080;
text-decoration: none;
}
a.poplink:hover {
color:white;
text-decoration: none;
}
a.poplink span {
font-variant: small-caps;
}
</style>
</head>
<body>
<a class="poplink" href="Rex36.htm" onclick="NewWindow(this.href,'mywin','300','300','no','center');return false" onfocus="this.blur()">Rex 36&nbsp; <span>&gt;</span></a>
</body>
</html>

If there are other styles on or linked to the page that affect <a> tags, they may interfere with this in IE and perhaps some other browsers, unless measures are taken to prevent that.

searson1
04-20-2007, 07:40 AM
John

Many thanks for such a speedy reply. That worked a treat. I am a happy chappy. Thank you again.

Mark