PDA

View Full Version : animated div - on click to roll over



carmelaem
11-13-2008, 08:43 PM
1) Script Title: Animated Collapsible Div

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

3) Describe problem:
How do I change the js code for the open button (second state after clicking the close button) to a roll over from an on click? The sample is located at http://www.areadevelopment.com/test/ddsample.html

Thanking you in advance!

Nile
11-13-2008, 11:16 PM
With your code, this should work - just replace it.


<div id="cat" style="width: 845px;">
<img src="http://www.areadevelopment.com/images/subscribe/subscribe2top.jpg" width="845" height="36" usemap="#Map" />

<map name="Map" id="Map">
<area shape="rect" coords="-782,-8,843,29" href="javascript:void(0)" onMouseOver="animatedcollapse.show('dog')" alt="" />
</map></div>

carmelaem
11-14-2008, 02:49 PM
Thanks, it works great!