brvaland
07-10-2008, 06:13 AM
Hi experts
I have a javascript code working fine on IE but not working properly on Firefox. Also i have the software called firebug installed for the Firefox v2.0.
No errors discovered for the Javascript code on Firebug.
The code display a popup window with address of the customer on mouseover event of the browser.
function showTooltip(ccdstatus, event)
{
document.getElementById("td0").innerHTML=ccdstatus;
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop + 10;
document.getElementById("Popup").style.display="block";
document.getElementById("Popup").style.left = x;
document.getElementById("Popup").style.top = y;
}
function HideTooltip()
{
document.getElementById("Popup").style.display="none";
}
<div id="Popup" class="transparent">
<div style="background-color:#6B696B; font-family:Verdana; font-size:10pt" align="center" >
<b><span>New Address</span></b>
</div>
<div>
<table width="100%" border=0 cellpadding=0 cellspacing=0 style="font-family:Verdana; font-size:10pt">
<tr>
<td id="td0" align="left" class="runtext1"></td>
</tr>
</table>
</div>
</div>
<td align="center" style="color: Blue; font-weight: normal; font-style: normal; text-decoration: underline;" onmouseout="this.style.cursor=''; HideTooltip();" onmouseover="this.style.cursor='hand'; showTooltip('12 AB Sample Street <br> Sample Town <br>SP1 2ST', event);">Y</td>
I require my application to working with IE and Firefox, can anyone suggest want changes i might need to make to existing code to work on Firefox 2.0 or later.
Kind Regards
Bhavesh
I have a javascript code working fine on IE but not working properly on Firefox. Also i have the software called firebug installed for the Firefox v2.0.
No errors discovered for the Javascript code on Firebug.
The code display a popup window with address of the customer on mouseover event of the browser.
function showTooltip(ccdstatus, event)
{
document.getElementById("td0").innerHTML=ccdstatus;
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop + 10;
document.getElementById("Popup").style.display="block";
document.getElementById("Popup").style.left = x;
document.getElementById("Popup").style.top = y;
}
function HideTooltip()
{
document.getElementById("Popup").style.display="none";
}
<div id="Popup" class="transparent">
<div style="background-color:#6B696B; font-family:Verdana; font-size:10pt" align="center" >
<b><span>New Address</span></b>
</div>
<div>
<table width="100%" border=0 cellpadding=0 cellspacing=0 style="font-family:Verdana; font-size:10pt">
<tr>
<td id="td0" align="left" class="runtext1"></td>
</tr>
</table>
</div>
</div>
<td align="center" style="color: Blue; font-weight: normal; font-style: normal; text-decoration: underline;" onmouseout="this.style.cursor=''; HideTooltip();" onmouseover="this.style.cursor='hand'; showTooltip('12 AB Sample Street <br> Sample Town <br>SP1 2ST', event);">Y</td>
I require my application to working with IE and Firefox, can anyone suggest want changes i might need to make to existing code to work on Firefox 2.0 or later.
Kind Regards
Bhavesh