(Inadvertedly only sent to me)
--- Begin Message ---
Object and events that occur in the browser window are controlled by
Objects and events that occur on the server are controlled by server-side
scripts (PHP, ASP, etc.)
Since PHP is a server-side scripting language it can not react to
client-side events (onClick, onMouseOver, etc.) or access client-side
objects (window, document, etc.). So it's impossible to get PHP (or any
other server-side scripting language) to reduce the amount of code needed
for client-side interactions (your images swaps and mouseovers).
what u can do is put all the scripts in an external .js file and reduce the
size of the file by removing "white spaces" (spaces, tabs, line
feeds/carriage returns). i'm not sure if this would significantly reduce ur
file size but it's an option.
----- Original Message -----
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "tim at 10Kv" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 6:17 PM
Subject: Re: [PHP] Stupid question alert
> Your question is not stupid - it's just uninformed, and that's easily
> understandable if you never used PHP.
> The concept is dynamically creating the page SERVER-SIDE. That is, use
> databases or some nifty code to dynamically build a page using specific
> parameters. Unforunately for you, this means that all the fun ends on the
> side. Once PHP ends its job, Apache takes over and serves the content
> by PHP as it would serve any regular file. What you actually pass to the
> something similar from PHP (which is the same as writing the respective
> some other parameters you pass to PHP).
> Hope my explanation makes sense... ;-)
> tim at 10Kv wrote:
> > Hi,
> > first of all apologise to the list this is a very basic question for
> > Iım sure. I have tried to find an answer on the web but the problem is
> > knowing HOW to ask the question and I hoping you can provide me with a
> > starting point.
> > Anyway.. I design a lot of graphic intensive pages which rely heavily on
> > layers that contain images, mouseovers and image swaps. The trouble is,
> > there are more than a couple of these layers on a page the code gets
> > and over complicated. For example, if I have a page which on one side
> > contains an image map with 5 clickable points that shows one of 5
> > layers on the other side of the page (each with different content)
> > automatically a page with lots of code which is slow to load
> > the page already has a layer based navigation bar!
> > My question is: is there a way to use a language like php to make this
> > process easier? For example populate the layers from a different file
> > than have all the code on the same page and perhaps slim the page down a
> > little or is this missing the point of what a language like php is
> > Thanks for your help and my apologies if this is the worst question of
> > week.
> > Tim Rogers
--- End Message ---
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]