Web Design Forum: jquery not doing anything - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

jquery not doing anything

#1 User is offline   JMCDesigner 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 317
  • Joined: 04-August 09
  • Reputation: 3
  • Gender:Male
  • Location:Manchester England
  • Experience:Intermediate
  • Area of Expertise:Web Designer

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/

<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 &amp; Spas</a></li>
		<li><a href="#">Services &amp; Maintenance</a></li>
		<li><a href="#">Wellness</a></li>
		<li><a href="#">Contact Us</a></li>
	</ul>
</div>
</body>


0

#2 User is offline   ElanMan 

  • In, out, shake it all about...
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,298
  • Joined: 11-March 08
  • Reputation: 54
  • Gender:Male
  • Location:Darlington
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 06 January 2010 - 09:28 PM

You'll need to wrap your code inside the following function:
 $(document).ready(function(){
 ...your code here
 });

0

#3 User is offline   JMCDesigner 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 317
  • Joined: 04-August 09
  • Reputation: 3
  • Gender:Male
  • Location:Manchester England
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 06 January 2010 - 09:39 PM

*siiiigh*...thankyou

...damn you desizntech for making me wear the retard hat...
0

#4 User is offline   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,813
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

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!');
 });

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users