Dang, Mike. I'm sure glad you're around to correct my mistakes. Two in one day! :-D

--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jul 18, 2008, at 9:25 AM, Mike Alsup wrote:


clip is a valid css property but it is not supported by jQuery's
animate function.  If you need to animate the clip property then you
have to do it manually (without using animate).

Mike

The problem is that clip is not a valid HTML attribute. As far as I
know, it was only used for the <layer> element in Netscape 3 and 4.

--Karl
____________
Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Jul 18, 2008, at 6:48 AM, Geir Solerød wrote:

Hi!
I'm rather new to js, jQuery (and this mail-list).

I'm trying to make a fancy menu using jQuery. I need some help..

This is my code so far, but I've only had sucsess with the three
first lines. After that I don't know what is wrong..

   $(document).ready(function(){
   $('#K_meny').hover(function() {
           $('#anm').show()
                           .attr({
clip:"rect(auto,auto,auto, 80px)"})
                           .animate ({
                                   clip: "rect(auto,auto,auto,auto)"
                                   left: "59px"
                                   }, 1000);
           $('#K-meny li').show(100);
           $('#anm').hide();

           $('#K-meny .one').animate({
                   top: "-26px"
                   left: "48px"
                   , { queue:false, duration:3000 }
                   })
           $('#K-meny .two').animate({
                   top: "-26px"
                   left: "48px"
                   , 1000
                   })
           $('#K-meny .three').animate({
                   top: "-26px"
                   left: "48px"
                   , 1000
                   })
           });
   });

If it helps, please focus on line 4-9. The rest is a draft. But of
course, any guidance is appreciated.

Thanks a lot!

:) Geir, Norway

Reply via email to