Welcome to WebmasterWorld Guest from 54.167.175.157

Forum Moderators: coopster & jatar k

php show hide like js

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

5+ 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

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
6:56 am on Nov 1, 2006 (gmt 0)

5+ Year Member



thanks
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

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

5+ Year Member



thanks for detail

i discovered css may take care of this issue

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