button and mouse control

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

button and mouse control

Post by itsmani1 »

hi there....

i want to do something like that

a dynamic button that shoudl behave like when mouse rolled over it should change its location. is there any function in php that can do it for or i hav to write my onw one???

if there is any plz. tell me.


Regards.
cravikiran
Forum Newbie
Posts: 7
Joined: Sat Sep 18, 2004 4:55 pm

Post by cravikiran »

Hmm, the message is a bit confusing. However, most "dynamic" stuff that you describe would be done through something client side like javascript.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

ya caravikiran

its possible in java script but i want to know,
is that possible in php?

Thankx
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

no

Post by phpScott »

No it is not possible in php without resubmiting the page or using Iframes which will come back to using some javascript any way to manipulate the page.

PHP is server side and has no control over the client machine.
Once PHP leaves the server it can't do any more manipulation of the page.

Javascript is client side so it can do what it wants(within the given rules) on the client machine.

phpScott
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

ok thankx buddy :)
Post Reply