You are here: Re: Replace part of page with additional html « HTML « IT news, forums, messages
Re: Replace part of page with additional html

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация