ebook img

AdvancED DOM scripting : dynamic web design techniques PDF

73 Pages·0.393 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview AdvancED DOM scripting : dynamic web design techniques

Advanced Design Techniques: JavaScript to the Rescue Peter-Paul Koch (ppk) http://www.quirksmode.org VTM Conference, Oct. 24th, 2007 1998 if (browser == 'Netscape') document.write ('<body background=”pix/bg_nn.gif”>'); else if (browser == 'IE') document.write ('<body background=”pix/bg_ie.gif”>'); <noscript> <body background=”pix/bg_nn.gif”> </noscript> if (browser == 'Netscape') document.write ('<body background=”pix/bg_nn.gif”>'); Maybe this isn't else if (browser == 'IE') such a good idea document.write ('<body background=”pix/bg_ie.gif”>'); after all. <noscript> (Still, the principle <body background=”pix/bg_nn.gif”> remains valid.) </noscript> Fast forward to 2007 Using JavaScript responsibly to plug a few holes in browsers' CSS support Zebra Lists li:nth-child(even) { background-color: #00cc00; } Opera: Yes IE: No Firefox: No Safari: No <ul id=”navigation”> <li><a href=”#”>My books</a></li> <li><a href=”#”>Other books</a></li> </ul> <p>Titles</p> <ul> <li>PPK on JavaScript</li> <li>Designing with Web Standards<li> <li>Bulletproof Web Design</li> </ul> <ul id=”navigation”> <li><a href=”#”>My books</a></li> <li><a href=”#”>Other books</a></li> </ul> <p>Titles</p> <ul class=”zebra”> <li>PPK on JavaScript</li> <li>Designing with Web Standards<li> <li>Bulletproof Web Design</li> </ul>

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.