www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] Help using 2 effect together...

  1. #1
    Join Date
    Apr 2008
    Location
    Reading, UK
    Posts
    8

    resolved [RESOLVED] Help using 2 effect together...

    Hi all,
    Im a newbe in javascript, mootools, jquery ecc...so sorry if the questions are silly or stupid...

    Im trying to put two effect at the same time, one is a scroll effect from mootools, the second one its another kind of scroll from jquery.

    one esclude the other so I thought that maybe the jquery function could be translated/adapted into mootools function.

    here's my jquery code:

    var name = "#top";
    var menuYloc = null;

    $(document).ready(function(){
    menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
    $(window).scroll(function () {
    offset = menuYloc+$(document).scrollTop()+"px";
    $(name).animate( {topffset},{duration:500,queue:false});
    });
    });



    is it possible to adapt it for mootools?

    thanks for your help in advance.

    Maurizio

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Apr 2008
    Location
    Reading, UK
    Posts
    8

    Thanks

    Thanks, problem solved!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles