Guest DBP Posted November 5, 2005 Share Posted November 5, 2005 I'm using an external stylesheet for some html pages. I also have some js which dynamically creates some links for these pages, during the body_onload event. But when the links are created they adopt default browser style.How can I apply my external style rules WITHOUT mixing in-line style tags with my javascript?TIA Link to comment Share on other sites More sharing options...
hacknsack Posted November 5, 2005 Share Posted November 5, 2005 Can you supply a link to the page that's having the problem?Better if we can see your page and it's components.Thanks, Link to comment Share on other sites More sharing options...
F-Man Posted November 6, 2005 Share Posted November 6, 2005 Write your links in the body and use CSS "display: none" to your links. Then use JavaScript to change the display (see DHTML tutuorial). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now