...

View Full Version : href not hrefing



Steveo31
09-25-2004, 10:09 PM
Hey guys... I'm havin some problems with this site of mine. It's completely image based, so the links for login, logout, etc are javascript controlled. Links for em look like this:



<a onmouseover="changeImages('top_nav_08','Images/Top_Nav/new_user_over_08.gif');return true" onmouseout="changeImages('top_nav_08','Images/Top_Nav/new_user_08.gif');return true" href="index.php?do=logout"><img id="top_nav_08" src="Images/Top_Nav/new_user_08.gif"></a>
There's some other attributes I took out to make it smaller here on the forums, but the problem I am having is for the href. When I click this, the URL changes, meaning it goes to index.php?do=logout, but the PHP script I have for it doesn't get triggered till you click it again.

I don't think it's my PHP script cause it works the second time around.

Any ideas? Thanks!

gohankid77
09-25-2004, 10:20 PM
Have you tried applying the onmouseover and onmouseout events to the img tag instead?

Steveo31
09-25-2004, 10:25 PM
Hm, no... never thought about it. I'll give it a try.

Steveo31
09-25-2004, 10:30 PM
Hmm... turns out it was my PHP.. Thanks for the quick reply though, Gohankid.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum