Re: large external script to include in many pages
| From: | Henrik Hansen | Date: | Mon, 13 Aug 2001 20:12:20 +0000 |
| Subject: | Re: large external script to include in many pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62495@lists.php.net to get a copy of this message | ||
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