Welcome to WebmasterWorld Guest from 54.147.20.131

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php show hide like js

     

jackdack

5:40 am on Nov 1, 2006 (gmt 0)

10+ Year Member



just wondering if there's a way in php to show/hide some html, ie on mouse over or click for html to appear on screen i.e. it's already loaded but not displayed(it's possible in Javascript)

thanks

jatar_k

5:56 am on Nov 1, 2006 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



no there isn't, javascript is your best bet

jackdack

6:56 am on Nov 1, 2006 (gmt 0)

10+ Year Member



thanks

mcibor

3:21 pm on Nov 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just remeber, that whatever you write in php it is done on the server, not on the user's computer. So if you want to get something from user he has to display the page once more.

Javascript, however, is processed by the browser, therefore mouse/keyboard can affect it.

Hope this cleares the matter for you.
Michal

jackdack

9:34 am on Nov 2, 2006 (gmt 0)

10+ Year Member



thanks for detail

i discovered css may take care of this issue

mcibor

11:02 pm on Nov 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



css is not perfect, as there are many browsers that don't support it
Therefore I recommend using
onMouseOver, onMouseOut and onClick

Regards
Michal

 

Featured Threads

Hot Threads This Week

Hot Threads This Month