I have an image map and when the user mouses over certain sections of the image, I call the function below to display certain information.
function show(country, address){
// Set the left edge of the span
var left = event.clientX + document.body.scrollLeft - 2;
if (left > 600) left = left - 75;
with(document.getElementById('tooltip')) {
style.visibility = 'visible';
style.width = 160;
style.left = left;
style.top = event.clientY + document.body.scrollTop + 18;
innerHTML = "<FONT COLOR=\"BLUE\"><U>" + country + " </U></FONT><BR>" + address;
}
}
This function works perfectly well in IE6 but it doesn't work in Netscape 7. Can anyone tell me why??
Mighty
function show(country, address){
// Set the left edge of the span
var left = event.clientX + document.body.scrollLeft - 2;
if (left > 600) left = left - 75;
with(document.getElementById('tooltip')) {
style.visibility = 'visible';
style.width = 160;
style.left = left;
style.top = event.clientY + document.body.scrollTop + 18;
innerHTML = "<FONT COLOR=\"BLUE\"><U>" + country + " </U></FONT><BR>" + address;
}
}
This function works perfectly well in IE6 but it doesn't work in Netscape 7. Can anyone tell me why??
Mighty