|
Posted by Richard Thoms on 10/03/16 11:33
Hello,
Please checkout the html code below.
The first link is normal and will always show red when hovering. The
second link has no href in it (is that legal?) but accomplishes what I
want to do (create a simple popup window and).
The problem is that the second link will not honor the A:hover style
(color=red) in IE, it does work fine in Firefox.
One more interesting note is that without the A style definition the
second link has absoulutely no formatting. I'm forced to set the color,
decoration, and cursor to make it look like a link. This is true for
both IE and Firefox.
Any ideas?
I'm very new to the javascript so maybe there is an easier way to do
what I want. I thought about using target="_blank" but that gives me
full browser and I want more of a popup look.
Thanks in advance for any help.
-Richard
----------------------------------------
<html>
<style type="text/css">
<!--
A {
color:#0000ff;
text-decoration: underline;
cursor: pointer;
cursor: hand;
}
A:hover {
color:#ff0000;
}
-->
</style>
<body>
<a href="hover_color.htm" target="_blank">
1 - Normal Link: Hover here and color changes!
</a><br />
<a onClick="window.open('hover_color.htm','','width=400,height=100')">
2 - Popup Link: Hover here and no color change!
</a><br />
</body>
</html>
Navigation:
[Reply to this message]
|