View Single Post
  #1 (permalink)  
Old April 11th, 2006, 04:58 AM
crmpicco crmpicco is offline
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default 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
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
Reply With Quote