Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-18-2010, 04:14 PM #1
- Join Date
- Jun 2010
- Cleveland, Ohio
- Thanked 0 Times in 0 Posts
http://www.nasawear.com/Home.html (The news article should display in the right column.)
document.write("<link rel="stylesheet" type="text/css" href="css/mainpage.css" />"); document.write("<h3 class="section">"); document.write("New NASA News"); document.write("</h3>"); document.write(" <div class="picbox"> <a target="_blank" href="image/superhotplanet-full.jpg"> <img class="white" width="335" height="268" src="image/superhotplanet-full.jpg" alt="NASA Finds Super-Hot Planet with Unique Comet-Like Tail" /> Full Size</a> <p class="imageandstuff">NASA Finds Super-Hot Planet with Unique Comet-Like Tail</p> <p class="dis"> Astronomers using NASA's Hubble Space Telescope have confirmed the existence of a baked object that could be called a "cometary planet." The gas giant planet, named HD 209458b, is orbiting so close to its star that its heated atmosphere is escaping into space. <br/> <br/> Observations taken with Hubble's Cosmic Origins Spectrograph (COS) suggest powerful stellar winds are sweeping the cast-off atmospheric material behind the scorched planet and shaping it into a comet-like tail. <br/> Illustration Credit: NASA, ESA, and G. Bacon (STScI) </p> </div> ");
Last edited by DeMaster; 07-18-2010 at 06:45 PM.
07-18-2010, 04:49 PM #2
- Join Date
- Feb 2009
- Ilkley, West Yorkshire, UK
- Thanked 726 Times in 720 Posts
js sees the quotes in class="section as the end of the text to write, then finds more text after it and fails. This example should be:Code:document.write("<h3 class="section">");