Forums / Developer / Troubles with onmouseover

Troubles with onmouseover

Author Message

Christian Lundvang

Friday 18 July 2003 5:40:19 am

Hi.

I'm having som troubles concerning onmouseover and onmouseout. Take a look at this:
<map name="image">

<area shape=rect coords="1, 0, 249, 39" href={"/content/view/full/16/"|ezurl} alt=""
{literal} onmouseover="document.rull.src=img1.src; return true" onmouseout="document.rull.src=img0.src; return true"

{/literal}
</map>

The images is declared in a javascript-file that is included on top.

This doesn't work. Can anybody help me?

Thanks in advance

--
Best Regards
Christian Lundvang
http://www.nxc.no

Alex Jones

Friday 18 July 2003 6:23:07 am

This may seem like a basic question, but where is this code placed, in the template or within an entry? Also, have you double-checked to ensure the code works outside of eZ publish? I've run into a couple of problems that I thought were due to eZp, but turned out to be a mistake in my JavaScript.

If this is in the template do you need to use the literal tags? From the snippet you posted above, I would say they aren't needed as there are not any special characters like { that you need to escape.

Alex

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>