Steveo31
09-25-2004, 09: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!
<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!