Homework4Part1Martin

Homework4Part1Martin - text or background<br...

Info iconThis preview shows page 1. 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 Homework Assignment 4 Exercise 12.7 --> < <html xmlns = "http://www.w3.org/1999/xhtml"> < <head> <title>Exercise 12.7</title> <style type = "text/css"> .option { color: black } .purplebg { background-color: #8A2BE2 } .coralbg { background-color: #FF7F50 } .sans { font-family: sans-serif } .serif { font-family: serif } </style> <script type = "text/javascript"> function bodyClass() { document.body.className = class; } </script> </head> <body> <div id = "main">Click one of the options below to activate changes to the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: text or background&lt;br /&gt;&lt;br /&gt; &lt;div&gt;Options: &lt;div onclick = &quot;document.body.className = 'purplebg'&quot; class = &quot;option&quot;&gt;Change background to purple.&lt;/div&gt; &lt;div onclick = &quot;document.body.className = 'coralbg'&quot; class = &quot;option&quot;&gt;Change background to coral.&lt;/div&gt; &lt;div onclick = &quot;document.getElementById( 'main' ).className = 'sans'&quot; class = &quot;option&quot;&gt;Change text to Sans-serif.&lt;/div&gt; &lt;div onclick = &quot;document.getElementById( 'main' ).className = 'serif'&quot; class = &quot;option&quot;&gt;Change text to Serif.&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;...
View Full Document

This document was uploaded on 04/22/2011.

Ask a homework question - tutors are online