DB4 - } // end function processlinks // -->...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!--Jaime Martin Discussion Board 4 Assignment - Exercise 12.3 --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Using Links Collection</title> <style type = "text/css"> body { font-family: arial, helvetica, sans-serif; } h1 { font-family: tahoma, geneva, sans-serif; text-align: center; } p { margin: 5%; } p a { color: #aa0000; } .links { font-size: 14px; text-align: justify; margin-left: 10%; margin-right: 10%; } .link a { text-decoration: none; } .link a:hover { text-decoration: underline; } </style> <script type = "text/javascript"> <!-- function processlinks() { var linkslist = document.links; // get the document's links // concatenate each link to contents for ( var i = 0; i < linkslist.length; i++ ) { linkslist.item(i).style.backgroundColor="yellow"; } // end for document.getElementById( "links" ).innerHTML = contents;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } // end function processlinks // --&gt; &lt;/script&gt; &lt;/head&gt; &lt;body onload = &quot;processlinks()&quot;&gt; &lt;h1&gt;Deitel Resource Centers&lt;/h1&gt; &lt;p&gt;&lt;a href = &quot;http://www.deitel.com/&quot;&gt;Deitel's website&lt;/a&gt; contains a rapidly growing &lt;a href = &quot;http://www.deitel.com/ResourceCenters.html&quot;&gt;list of Resource Centers&lt;/a&gt; on a wide range of topics. Many Resource centers related to topics covered in this book, &lt;a href = &quot;http://www.deitel.com/iw3htp4&quot;&gt;Internet and World Wide Web How to Program, 4th Edition&lt;/a&gt;. We have Resouce Centers on &lt;a href = &quot;http://www.deitel.com/Web2.0&quot;&gt;Web 2.0&lt;/a&gt;, &lt;a href = &quot;http://www.deitel.com/Firefox&quot;&gt;Firefox&lt;/a&gt; and &lt;a href = &quot;http://www.deitel.com/IE7&quot;&gt;Internet Explorer 7&lt;/a&gt;, &lt;a href = &quot;http://www.deitel.com/XHTML&quot;&gt;XHTML&lt;/a&gt;, and &lt;a href = &quot;http://www.deitel.com/JavaScript&quot;&gt;JavaScript&lt;/a&gt;. Watch the list of Deitel Resource Centers for related new Resource Centers.&lt;/p&gt; &lt;div id = &quot;links&quot; class = &quot;links&quot;&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt;...
View Full Document

Page1 / 2

DB4 - } // end function processlinks // --&amp;amp;gt;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online