Re: large external script to include in many pages
| From: | Web Manager | Date: | Mon, 13 Aug 2001 22:15:11 +0000 |
| Subject: | Re: large external script to include in many pages | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62511@lists.php.net to get a copy of this message | ||
Henrik Hansen wrote:
>
> web@inter-resa.com (Web Manager) wrote:
>
> > Hello,
> >
> > I am testing a new DHTML code for navigation menus. I plan to use it
> > throughout my web pages made with PHP. The script is about 600 lines
> > long!
> >
> > Beside making a :
> >
> > define (script1, "" .
> > "" .
> > "" .
> > "");
> >
> > and calling the script1 name in my PHP pages...
> >
> > this will be very, very long, is there a another way to create a kind of
> > variable ($myscript == 600 lines of the DHTML) that I could simply call
> > out in all my pages. Something like a <script src="../myscript.js">
>
> I would go with the script tag if I were you.
>
> --
> Henrik Hansen
Hello,
well, I can't... I have HTML code (image tags) in the DHTML script and
this can not be in a .js file...
Thanks for your input!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marc Andre Paquin