|
I have the following in one external js file. Its purpose is to implement dropdown menus.
function header() {
document.write('.....
<a href="javascript:void(0);" onClick="return clickreturnvalue();" onMouseover="dropdownmenu(this, event, menu3, 160px);" onMouseout="delayhidemenu();">PRODUCT INFO</a>.....')
}
The dropdownmenu, clickreturnvalue and delayhidemenu scripts are in another external file.
When the html portion of this code is in the html file directly, it works perfectly. Within the html file is the following head entry which gives the path to the external script:
<script type="text/javascript" src="support-files/dropdown.js"></script>
When I move the html for the dropdown scripts into an external js file wrapped in a document.write, the drop downs stop working.
Any thoughts?
Thanks.
Last edited by masscraft : 01-26-2008 at 05:28 PM.
|