PHP Classes

echo javascript:ajaxpage with onmouseover

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  echo javascript:ajaxpage with...  
Subject:echo javascript:ajaxpage with...
Summary:onmouse over works on one part but not the other....
Messages:2
Author:Bristol
Date:2009-06-26 00:20:22
Update:2009-06-26 03:10:13
 

  1. echo javascript:ajaxpage with...   Reply   Report abuse  
Picture of Bristol 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>";

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.