homepage Welcome to WebmasterWorld Guest from 54.166.148.189
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
php show hide like js
jackdack




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

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




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

no there isn't, javascript is your best bet

jackdack




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

thanks

mcibor




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

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




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

thanks for detail

i discovered css may take care of this issue

mcibor




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

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

Regards
Michal

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved