14.08.2016 Views

Beginning JavaScript with DOM Scripting and Ajax, 2nd Edition

Create successful ePaper yourself

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

Chapter 5 ■ Presentation <strong>and</strong> Behavior (CSS <strong>and</strong> Event H<strong>and</strong>ling)<br />

The fixElements() method then applies the maximum height to all the elements <strong>with</strong> the given name. Notice<br />

that you need to test for the class determining the “more” links; otherwise, the links would get the same height as the<br />

highest content paragraph.<br />

fixElements:function(elm){<br />

var temp=fixcolumns.n.getElementsByTagName(elm);<br />

for(var i=0;i

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

Saved successfully!

Ooh no, something went wrong!