Hi,
Ive created buttons for my website and have used some javascript i have found to make them fade in and out with hover. It works but after a few passes with the mouse they stop fading in… sometimes coming back, but very sporadic. Whats going on? Take a look at the button section.
Here is the code:
HTML:
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
<meta name=”description” content=”Toronto Real Estate Agent – Conrad Rygier” />
<meta name=”keywords” content=”real estate, toronto, buying, selling, lease, rental, condo, bloor west, high park, lakefront, downtown, for sale, for lease, for rent” />
<meta name=”author” content=”Conrad Rygier” />
<link rel=”stylesheet” type=”text/css” href=”real_estate_toronto.css” media=”screen,projection” />
<title>Living In My Toronto – Real Estate Agent – Conrad Rygier</title>
<script type=”text/javascript” src=”js/jquery-1.3.min.js”></script>
<script type=”text/javascript” src=”js/custom.js”></script>
</head>
<body>
<div id=”layout”>
<div id=”buttons”>
<!– Home Button –>
<div id=”bt_home”><a href=”main_real_estate_toronto.html”></a></div>
<!– Buying Button –>
<div class=”fade” id=”buy”>
<a href=”buying_real_estate_toronto.html”><img src=”images/buttons/btn_buying1.jpg” /></a>
<div>
<a href=”buying_real_estate_toronto.html”><img src=”images/buttons/btn_buying2.jpg” /></a>
</div>
</div>
<!– Selling Button –>
<div class=”fade” id=”sell”>
<a href=”selling_real_estate_toronto.html”><img src=”images/buttons/btn_selling1.jpg” /></a>
<div>
<a href=”selling_real_estate_toronto.html”><img src=”images/buttons/btn_selling2.jpg” /></a>
</div>
</div>
<!– Leasing Button –>
<div class=”fade” id=”lease”>
<a href=”leasing_real_estate_toronto.html”><img src=”images/buttons/btn_leasing1.jpg” /></a>
<div>
<a href=”leasing_real_estate_toronto.html”><img src=”images/buttons/btn_leasing2.jpg” /></a>
</div>
</div>
<!– Listings Button –>
<div class=”fade” id=”listings”>
<a href=”listings_real_estate_toronto.html”><img src=”images/buttons/btn_listings1.jpg” /></a>
<div>
<a href=”listings_real_estate_toronto.html”><img src=”images/buttons/btn_listings2.jpg” /></a>
</div>
</div>
<!– Contact Button –>
<div class=”fade” id=”contact”>
<a href=”contact_real_estate_toronto.html”><img src=”images/buttons/btn_contact1.jpg” /></a>
<div>
<a href=”contact_real_estate_toronto.html”><img src=”images/buttons/btn_contact2.jpg” /></a>
</div>
</div>
<div id=”mainpage_image”><img src=”images/main_page_photo.jpg” alt=”main page photo” /></div>
<div id=”content_right”>
<h1>Toronto <br />Real Estate</h1>
<h2>Living In My Toronto</h2>
<p>This website was designed to be a <br /><b>hub of information</b> for anyone contemplating real estate in our beautiful city of Toronto. Whether you are looking to <b>buy</b> or <b>sell</b> a <b>condo</b> , <b>loft</b>, <b>house</b> or <b>townhouse</b>, I hope this website and my services can be of use to you.</p>
</div>
<div id=”living_logo”>
<a href=”main_real_estate_toronto.html”><img src=”images/living_logo.jpg” alt=”Living In My Toronto” /></a>
</div>
<div id=”sutton_logo”>
<a target=”_blank” href=”http://www.sutton.com/”><img src=”images/sutton_logo.jpg” alt=”sutton logo” /></a>
</div>
<div id=”signature”><b>Cell:</b>555 555 5555 <a href=”mailto: [email][email protected][/email]?subject=Real Estate Web Inquiry” title=”[email protected]”><b>Email Me</b></a></div>
</div>
</body>
</html>