...

View Full Version : 2 state rollover image script



Lane Gross
08-09-2012, 02:34 AM
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

DrDOS
08-09-2012, 03:15 AM
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?

Lane Gross
08-09-2012, 04:02 AM
i dont mind doing javascript. i cant find a good example to use an active image with javascript though.

DrDOS
08-09-2012, 05:24 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum