<head>
<script type="text/javascript" src="Scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.color.js"></script>
<script type="text/javascript">
// font color animation
$(".menuani a").hover(function() {
$(this).animate({ color: "#00eeff" }, 400);
},function() {
$(this).animate({ color: "#000000" }, 500);
});
</script>
</head>
<body>
<div id="menu" class="menuani">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Swimming Pools & Spas</a></li>
<li><a href="#">Services & Maintenance</a></li>
<li><a href="#">Wellness</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</body>
Page 1 of 1
jquery not doing anything
#1
Posted 06 January 2010 - 08:32 PM
Am I just completely retarded or is this bastard thing being an arse by refusing to work?? Everything is there and correct, I don't geddit!?! I've copied the fontcolour animation from http://desizntech.in...olor_animation/
#2
Posted 06 January 2010 - 09:28 PM
You'll need to wrap your code inside the following function:
$(document).ready(function(){
...your code here
});
#3
Posted 06 January 2010 - 09:39 PM
*siiiigh*...thankyou
...damn you desizntech for making me wear the retard hat...
...damn you desizntech for making me wear the retard hat...
#4
Posted 07 January 2010 - 12:32 AM
For debigging, it's always a good idea to add the following in your document ready section to check if jquery is loading:
$(document).ready(function(){
alert('DOM Loaded!');
});
Share this topic:
Page 1 of 1
Help

















