Bristol - 2009-06-26 00:29:03
I have this login php script, and i am trying to get to work with onclick to open a page in the leftcolumn, and the rightcolumn. then with the onmouseover.
I was able to get it to work with one but not the other, and im not sure exactly what the problem is.
Here is the code for the code that works with the onclick and onmouseover
echo "<a href=\"javascript:ajaxpage('left.htm', 'leftcolumn');\" onclick=\"javascript:ajaxpage('contact.htm', 'rightcolumn');\" onmouseover=\"document.home.src='img/nav/home_2.gif'\" onmouseout=\"document.home.src='img/nav/home_1.gif'\"><img src=\"img/nav/home_1.gif\" name=\"home\" border=\"0\" alt=\"home\"></a>";
and here is the code that is clickable, and opens the two pages i would like to open, but the onmouseover is not working
echo "<a href=\"javascript:ajaxpage('userinfo.php?user=$session->username', 'leftcolumn');\" onclick=\"javascript:ajaxpage('contact.htm', 'rightcolumn');\" onmouseover=\"document.userinfo.src='img/login/myaccount_2.gif\" onmouseout=\"document.userinfo.src='img/login/myaccount_1.gif\"><img src=\"img/login/myaccount_1.gif\" name=\"myaccount\" border=\"0\" alt=\"MyAccount\"></a>";