Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Effects/fadeTo question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cedwardz  
View profile  
 More options Jun 8 2008, 8:37 am
From: cedwardz <chris.edwa...@btinternet.com>
Date: Sun, 8 Jun 2008 05:37:21 -0700 (PDT)
Local: Sun, Jun 8 2008 8:37 am
Subject: Effects/fadeTo question
Hello

I have modified the jQuery 'Effects/fadeTo' effect so that hovering
over a link makes it fade. See example at:
http://www.btinternet.com/~chris.edwardz/jquery/index.htm

I am quite new to this technology, however my question is to find out
whether it is possible for the link state to return to normal on mouse
out / not hovering over the link/s? That is enquring that the fading
does not remain as is currently the case.

Would a callback create the desired effect?

Thanks in advance
C


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kyle Bradshaw  
View profile  
 More options Jun 8 2008, 10:38 am
From: "Kyle Bradshaw" <kyle.brads...@gmail.com>
Date: Sun, 8 Jun 2008 10:38:43 -0400
Local: Sun, Jun 8 2008 10:38 am
Subject: Re: [jQuery] Effects/fadeTo question

hover(over,out)
http://docs.jquery.com/Events/hover

Can be set up like this in  your code:
$(document).ready(function(){

$("a").hover(function(){
   //over
   $(this).fadeTo("slow", 0.22);

},function(){

   //out (full opacity)
   $(this).fadeTo("slow", 1);
);

});

K

On Sun, Jun 8, 2008 at 10:17 AM, Kyle Bradshaw <k...@somedirection.com>
wrote:

--
Kyle Bradshaw

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cedwardz  
View profile  
 More options Jun 8 2008, 3:42 pm
From: cedwardz <chris.edwa...@btinternet.com>
Date: Sun, 8 Jun 2008 12:42:20 -0700 (PDT)
Local: Sun, Jun 8 2008 3:42 pm
Subject: Re: Effects/fadeTo question
Thanks Kyle.  That worked a treat once I included the missing curly
bracket }.
Here is the fixed code! A nice effect :)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -

$(document).ready(function(){

$("a").hover(function(){

//over

$(this).fadeTo("slow", 0.22);

},function(){

//out (full opacity)

$(this).fadeTo("slow", 1);

});
});

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -

On Jun 8, 3:38 pm, "Kyle Bradshaw" <kyle.brads...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »