13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

That’s our AddEvent part, mentioned previously. The addEvent function should be in the .js file, as is the following call to<br />

that function:<br />

addEvent(window, 'load', addPrintLinks, false);<br />

“. . . the JavaScript kicks in and does the following:<br />

First, it goes through the entire document looking for div elements and creates an array.”<br />

function addPrintLinks()<br />

{<br />

var el = document.getElementsByTagName("div");<br />

for (i=0;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!