Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-09-2002, 04:25 AM   PM User | #1
flagrantly76
New to the CF scene

 
Join Date: Jul 2002
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
flagrantly76 is an unknown quantity at this point
javascript in netscape table causes gaps

Hello - this is driving me nuts, so any advice is appreciated. (I'm also new at this, so please bear with me.)

I'm trying to use a random image generator with javascript on my site. The random images themselves are to appear in a carefully laid out table, whose size cannot be altered.

The code for the cell where the images are to appear is:


<TD ROWSPAN=7 WIDTH=59 HEIGHT=170 VALIGN=TOP>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
showImage();
// End -->
</script>

</TD>


In IE it works fine but in Netscape the table breaks apart -- it's like it adds a 5 pixel border to the bottom of the image.

Without the random image generator code, the table looks fine in Netscape -- so why would this cause gaps in the table?

Any help is appreciated!
flagrantly76 is offline   Reply With Quote
Old 07-09-2002, 04:44 AM   PM User | #2
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
Just a suggestion: turn off wrap in your editor, and put the <td...>, the <script>.....</script>, and the closing </td> on the same line. Browsers do odd things with whitespace. Hard to say more, without the code which outputs the HTML to the cell. If there are any document.writeln()s in the script, try changing them to document.write().
adios is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:24 AM.


Advertisement
Log in to turn off these ads.