Topic: Title Attribute Image Hover Effect

Silly little question:

How do you get a tooltip effect - the title attribute working in this code I have. It's in an xml and I wanted it to show some text - but only when I hover over it!

Is it something I need to set in the .css?

Basically I need it to show what type of file it is when I hover over it: I'd input something like: Rapidshare RAR  or Mediafire ZIP


<cell><![CDATA[   <a href="" target="_blank"><img src=""></a><a href="" target="_blank"><img src=""></a> ]]></cell>

Thanks for any tips...

Re: Title Attribute Image Hover Effect

I'm not sure I understand the question hmm A normal tooltip would be added to the <a> tag as far as Im aware though:

<a href="" target="_blank" title="Rapidshare RAR"><img src=""></a>

Quickly tried it on a .htm page and the tooltip shows up when you hover the image. I cant see why it would be different for an XML file sad

Re: Title Attribute Image Hover Effect

i believe i tried that one, it must be that grid css that is not setting it - or something else overriding it....

thx I'll try it again....


Re: Title Attribute Image Hover Effect

It's CDATA escaped. That's the whole point of the enclosure. It's no longer treated as HTML, merely text.


Re: Title Attribute Image Hover Effect

If it's a true XML implementation, I believe you can set the containing cells type to allow XHTML. You'll need to dig for the specific info yourself, but this section from the Atom spec should give you an idea what you are looking for.

As far as I know, RSS is the only thing broken enough in the XML arena to not allow the container to contain XHTML by setting the type.