PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 24th, 2002, 02:03 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
category selection help

Hello everybody,I'm new but making progress in learning php...to learn php i wrote my own classified program but need somehelp with the way the category behaves. i like it to be able to select the category using the mouse and have it run a php code or a function based on the click and maybe have it change color when the mouse moves over it..this is what i have soo far: http://www.comgen.ca/phptest/mainclas.php.
any help you can give me would be greatly appreciated.. maybe a sample code to start me of/
thanks everybody

Reply With Quote
  #2  
Old July 24th, 2002, 04:20 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
RE: category selection help

Those type of things are done on the client side, ie JavaScript.
To execute some PHP code when the user clicks on an object ... use the onClick() to call your script.
To have it change colors when the user mouse over the link you can a) use javascript onMouseOver() and onMouseOut() or b) use css hover.
That get you going in the right direction.

Reply With Quote
  #3  
Old July 24th, 2002, 08:58 AM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: category selection help

you mean "To execute javascript code..", not "To execute PHP code..", right?

Reply With Quote
  #4  
Old July 24th, 2002, 10:07 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
RE: category selection help

Yeah, it is sort of vague.

Use the objects onCLick() to execute your javascript code that calls you php code.

How was that?

Reply With Quote
  #5  
Old July 24th, 2002, 10:19 AM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: category selection help

hehe, close.. more descriptively :

Assign the property of the html object, onClick to a javascript function - ie. <img src=blah.gif onClick='window.location("test.php");'> to force the browser to go to the page containing the server side php code..

But your explanation is probably clearer ;)

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > category selection help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway