|
Posted by Neredbojias on 07/19/05 14:13
With neither quill nor qualm, Nonee quothed
> Hello-
>
> I am designing a website with a menu and I would like to place
> the menu (which is in a table) on every page. I would like to be able
> to call an external javascript function call to write it but I haven't
> quite figured out how. I know that document.write('blah blah') could
> do it but that completely rewrites the entire site while I only want
> to put the table there, in between a title image and the rest of the
> web content. I know there is innerhtml calls for IE but 1) I am not
> sure how it works and 2) I rather not shoot myself in the foot in the
> cross-compatibility factor.
>
> Any ideas?
Though I agree with the suggestion about server-side being better, you
can call an external javascript with something like:
<script type="text/javascript" src="ext1.js"></script>
The ext1.js is another file which should contain a document.write that
can be inserted wherever you want in the body of the main page(s).
--
Neredbojias
Contrary to popular belief, it is believable.
Navigation:
[Reply to this message]
|