Code: Select all
{literal}
<__script__ type="text/javascript">
function SwapImg(button,pad)
{
var elem = document.getElementById(button);
elem.setAttribute("src",pad);
}
//--></__script>
{/literal}
change when the mouse is moved over a certain part of it, like this:
Code: Select all
<div id="bulbs">
<img id="bulbs0" src="/uploads/bulbs.png" usemap="#bulbsmap" alt="" />
<map name="bulbsmap" id="bulbsmap">
<area shape="rect" coords="484,210,547,311" alt="Test 1" title="Test 1" onMouseOver="SwapImg('bulbs0','/uploads/bulbs1.png');" onMouseOut="SwapImg('bulbs0','/uploads/bulbs.png');" />
</map>
</div>
I'm using the same script on another site without any problem, so I really don't understand why this bit of javascript interferes with the menu.
Any ideas?
Hans
CMSMS 1.10.2