p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript How-To (http://p2p.wrox.com/forumdisplay.php?f=87)
-   -   document.write into cell or td with Opera (http://p2p.wrox.com/showthread.php?t=41091)

crmpicco April 11th, 2006 04:58 AM

document.write into cell or td with Opera
 
Code:


var sUserAgt = navigator.userAgent.toLowerCase();
//alert("sUserAgt = " + sUserAgt);

alert(sUserAgt.indexOf('opera'));
if (sUserAgt.indexOf('opera') != -1)
{
    //var el = document.getElementById("cell_Header");
    //el.innerHTML = "<img src='/v2/asp/images/picco.gif' />";
    document.write ("<img src='/v2/asp/images/picco.gif' />")
}

====================

<td align="right" valign="top" height="100px" id="cell_Header"></td>

OK, it seems i cant use innerHTML in Opera. But i can use document.write, but how can i write into the specific cell (or div, if needed).

I want to put it into the cell above.

Many thanks.

Picco

www.crmpicco.co.uk
www.ie7.com


All times are GMT -4. The time now is 08:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.