Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-09-2012, 01:34 AM   PM User | #1
Lane Gross
New to the CF scene

 
Join Date: Jul 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Lane Gross is an unknown quantity at this point
2 state rollover image script

im looking for a php script that has mouse over and active image depending on what page you have, i cant seem to make images active like if in on the home page the home button nav is the active state and if on chat the chat is active state

my page where i have done a rollover in javascript is here: http://www.darkrealm.ca
Lane Gross is offline   Reply With Quote
Old 08-09-2012, 02:15 AM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
For php to do mouseover you have to send and receive from the server, and javascript has to detect the mouseover. So why not do it with javascript all the way?
DrDOS is offline   Reply With Quote
Old 08-09-2012, 03:02 AM   PM User | #3
Lane Gross
New to the CF scene

 
Join Date: Jul 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Lane Gross is an unknown quantity at this point
i dont mind doing javascript. i cant find a good example to use an active image with javascript though.
Lane Gross is offline   Reply With Quote
Old 08-09-2012, 04:24 PM   PM User | #4
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
I'm presuming that by 'active' you mean a hyperlink. The only way that i can think of offhand is to use the onclick="window.open();" method, as opposed to wrapping it in an anchor tag. You can call the window.open method inside a function, and you can assign it without having it explicit in the img tag. You can reuse the current window too, the default for that method is a new window.
DrDOS is offline   Reply With Quote
Reply

Bookmarks

Tags
rollover images

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:57 AM.


Advertisement
Log in to turn off these ads.