Click to See Complete Forum and Search --> : how can I combine this code


jamesx521
04-26-2005, 08:15 AM
Hi,

I want to combine these two:


<a href="#"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('IconCalendarR','','images/Icon_CalendarR.gif',1)">
</a>

and

<a href="javascript:show_calendar('calform.datebox');"
onMouseOver="window.status='Date Picker';return true;"
onMouseOut="window.status='';return true;">
</a>


So, the final outcome will have one:
a href, onMouseOver and onMouseOut.

I'm basically using the script for a rollover (on the top code) and the script for a pop up calendar -- date picker (on the bottom code).

Thanks.

scragar
04-26-2005, 08:18 AM
<a href="javascript:show_calendar('calform.datebox');"
onMouseOver="window.status='Date Picker';MM_swapImage('IconCalendarR','','images/Icon_CalendarR.gif',1);return true;"
onMouseOut="window.status='';MM_swapImgRestore(); return true;">
</a>