Click to See Complete Forum and Search --> : Ie Dom & Css


mikecop
06-07-2003, 05:16 AM
Hi,

A.
I am trying to create a Table of Content (TOC) using javascript & DOM from a page. I can get that working on Mozilla but not on IE. Can someone please help me take a look?

http://emingcompany.com/jaindex.php

Under IE , if i click on the link, it does not jump to the corresponding news items.

I just realize that Mozilla is able to see the code created with javascript/DOM using "View selected source", amazing.

looking at the source i see that the tags are created OK. So i don't what is wrong and why the link don't work on IE.

Is something wrong with my code, or is some of the code IE incompatible ? I suspect that IE don't have full support of the setAttribute feature?

B.
A quick CSS question. When i do:<h3>content of h3 ...content</h3>
<h4>content of h4 ...content</h4>

The result is:content of h3 ...content

content of h4 ...content


There will be a line break after each h3 and h4 (an empty line between h3 and h4).

How do i get rid of the line break and make it appear like this?:content of h3 ...content
content of h4 ...content


Thank you all for your help.