Website optimization by Andrew King

Website optimization by Andrew King

Author:Andrew King
Language: eng
Format: mobi
Tags: Web, Page Design, Web sites - Design, Electronic books, Internet programming, Site Design, Internet, Internet Marketing, Business, Software Development & Engineering, Systems Analysis & Design, Web sites, Computers, Search Engines, Business - Computer networks, Web Page Design, Business & Economics, Reference:Computers, Electronic commerce, General, E-Commerce, Design
ISBN: 9780596515089
Publisher: Farnham : O'Reilly, 2008.
Published: 2008-01-15T21:26:19.165000+00:00


Tip #10: Replace JavaScript Behavior with CSS Techniques

JavaScript is commonly used for rollovers and drop-down menus. However, in many cases you can substitute CSS :hover effects for JavaScript rollovers. Here is a real-world example that uses graphics rollovers for a left navigation bar (see Figure 7-1) that also uses graphical text (complete with underlines):

<img src="images/nav/nonav_top.gif"><br>

<a href="/tourism/" onMouseOver="act('tourism')" onMouseOut="inact('tourism')">

<img src="images/nav/tourism_off.gif" alt="Tourism" name="tourism" border="0"></a>

<br>

<a href="/trade/" target="_blank" onMouseOver="act('trade')"

onMouseOut="inact('trade')">

<img src="images/nav/trade_off.gif" alt="Trade" name="trade" border="0"></a><br>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.