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:
> 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:
> > 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 8:37 AM, cedwardz <chris.edwa...@btinternet.com>
> > wrote:
> >> 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<http://www.btinternet.com/%7Echris.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
> > --
> > Kyle Bradshaw
> --
> Kyle Bradshaw