Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with calling a function

Status
Not open for further replies.

Marnie101

Programmer
Nov 7, 2001
5
CA
I have customers that share the same basic pages but the header.inc and footer.inc pages change depending on their company.
I have a function that is generally called in the <body> tag within a page but I need it to be called in the header. Is this something that is possible since not all the customers will require this function to run and I have far too many to change all their existing pages. I'm a newbie with all this coding and any help would be appreciated.
Here is the function as it normally runs...
<body onLoad=&quot;writeMenus()&quot; onResize=&quot;if (isNS4) nsResizeHandler()&quot;>
Thanks
Marnie
 
You should be able to place it in the footer.inc file so long as it is located after all of the objects and / or elements that the function you want to run needs to access.

Just write this at the bottom of your footer.inc file.


<script Language=&quot;JavaScript&quot;>
writeMenus()
</script>


It doesn't hurt to try. :)

ToddWW
 
Just in case, you better change that to this..


<script Language=&quot;JavaScript&quot;>
<!--
writeMenus()
// -->
</script>


ToddWW

 
Thanks Todd,

That did work except for one thing....the menu is in front of all the text and tables of the pages, but the text fields always seem to come to the front, therefore hiding some of the menu items.
Any Ideas?

Marnie
 
My suggestion. Start a new thread in this forum. Provide some sample code and explain your new dilemma.

Todd WW :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top