putting something like <script src="../myscript.js"> isnt really going to
speed things up at all. the browser will still have to open myscript.js and
read all 600 lines from there. if you ask me on GET / HTTP/1.1 call is
faster then two. I would just include_once('../myscript.html'); in the file
you want it to be in. maybe Ive missunderstood. correct me if so.

--

  Chris Lee
  [EMAIL PROTECTED]




"Web Manager" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Henrik Hansen wrote:
> >
> > [EMAIL PROTECTED] (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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to