1 reply [Last post]
arch123
Offline
newbie
san diego
Last seen: 10 years 13 weeks ago
san diego
Joined: 2009-08-14
Posts: 1
Points: 0

Hi,

I have a span tag which works as a tooltip and pops up when the info is clicked. However when I am trying to add a hyperlink on the tooltip, it breaks the href and doesnt not pop up the tooltip.

attached the code
css is

<STYLE TYPE="text/css">
	.help {
	text-decoration:none;
	color:#000000;
	}
	.help A:hover {
	text-decoration:none;
	font-weight:lighter;
	}
	FONT.help A:link SPAN {
	display: none;
	}
	FONT.help A:visited SPAN {
	display:none;
	}
	FONT.help A:active SPAN {
	display:none;
	}
	FONT.help A:hover SPAN {
	text-decoration:none;
	width:520px;
	position:absolute;
	border:1px solid #000000;
	background-color:#EEEEEE;
	color:#000000;
	font-weight:normal;
	display:inline;
	}
</SPAN>
 
                        print "<FONT class='help2'><A HREF=#>";
			print "<font color='red'>".$val."</font>";
			if(!($val==0))
			{
				print "<SPAN>".$resources."</SPAN>";
 
			}
			print "</A></FONT>";

Thanks,
Br,
tresa

MikePixel
MikePixel's picture
Offline
Enthusiast
Everett, WA
Last seen: 5 years 21 weeks ago
Everett, WA
Timezone: GMT-7
Joined: 2008-06-20
Posts: 91
Points: 8

First of all I would highly

First of all I would highly recommend validating markup.
http://validator.w3.org/ (it will pick up things like the way you have a closing span tag instead of a closing style tag.)

Secondly it looks like you are mixing css with inline styling. (i.e. using Font to define style for your anchors) I am not sure why you would do that. It causes extra markup and muddies up things when you are trying to troubleshoot the markup.

Though from what you have I am not sure what you are doing actually. I will sit down tonight when I get a chance and try to mimic what you have above.

Do you have a link to the page you are having this issue on. That might help.