Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does this look like in Netscape?

Status
Not open for further replies.

kippie

Technical User
Nov 8, 2001
158
Can someone have a look into this HTML. In this code a text is placed in a table cell (textframe) with Link1 or Link2. The idea is that if the text is too large for the cell a scrollbar appears (Link1), while there's no scrollbar if the text nicely fits into the cell (Link2). This works nicely on my browser (IE6) but I have no idea how this works in Netscape.

This is the code:

<html>
<head>
<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
<script language=&quot;JavaScript&quot;><!--
//This is the function to change text on a changing background:
function htmlChange(id,message,bg){
d=document;
re=d.all?d.all[id]:d.getElementById(id);
re.style.padding = &quot;25px&quot;
re.innerHTML=message;
re.style.background = &quot;url(&quot;+bg+&quot;)&quot;;
}

var msg1 = 'This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1This is text1'
var msg2 = 'And this is text2 and this is tect2 and this is text2'
// -->
</script>
</head>

<body>
<table border=&quot;2&quot; bordercolor=&quot;red&quot; width=&quot;500&quot; height=&quot;175&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr height=&quot;25&quot;>
<td id=&quot;headmenu&quot; colspan=&quot;2&quot; height=&quot;25&quot;><a href=&quot;#&quot; onclick=&quot;htmlChange('textframe2',msg1,'bgWhite.gif');&quot;>Link1</a> <a href=&quot;#&quot; onclick=&quot;htmlChange('textframe2',msg2,'bgMidnightBlue.gif')&quot;>Link2</a></td>
</tr>
<tr height=&quot;175&quot;>
<td id=&quot;textframe&quot; bgcolor=&quot;#4169e1&quot; width=&quot;250&quot; height=&quot;175&quot; bordercolor=&quot;green&quot; border=&quot;3&quot;>
<div style=&quot;width:250px; height:175px; overflow-y:auto; overflow-x: hidden&quot;>
<table cellpadding=&quot;25&quot;>
<tr height=&quot;150&quot;>
<td id=&quot;textframe2&quot; width=&quot;250&quot; height=&quot;150&quot; bordercolor=&quot;blue&quot;>Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Tex0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0 Text0</td>
</tr>
</table>
</div>
</td>
<td height=&quot;175&quot;></td>
</tr>
</table>
</body>

</html>

Kippie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top