<a href=\"\" onmouseover=\"ajax_showTooltip('demo-pages/js-calendar.html',this);return false\" onmouseout=\"ajax_hideTooltip()\">Info</a>
the link is formed but the onmouseover event is not activated when the mouse is on the link.
please help!
thanks in advance
I printed that line out using a little perl script:
-----------------
#!/usr/bin/perl -w
use strict;
use CGI ':standard';
print header;
print qq{<a href=\"\" onmouseover=\"ajax_showTooltip('demo-pages/js-calendar.html',this);return false\" onmouseout=\"ajax_hideTooltip()\">Info</a>};
-----------------
Which outputs this to the browser:
<a href="" onmouseover="ajax_showTooltip('demo-pages/js-calendar.html',this);return false" onmouseout="ajax_hideTooltip()">Info</a>
This code is correct and works fine, so as long as you see that when you view source from your browser, there is nothing wrong with that particular code.
If the onmouseover is not working, it's most likely a javascript error which you should see in your browser, use Firefox to see javascript errors better.
print qq{<a href="#" onmouseover="ajax_showTooltip('demo-pages/js-calendar.html',this);return false" onmouseout="ajax_hideTooltip()">Info</a>};
Try using a full url here:
http://www.example.com/demo-pages/js-calendar.html
or a relative URL:
../demo-pages/js-calendar.html