-
[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( {top ffset},{duration:500,queue:false});
});
});
is it possible to adapt it for mootools?
thanks for your help in advance.
Maurizio
-
At least 98% of internet users' DNA is identical to that of chimpanzees
-
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
Forum Rules
|
|
Bookmarks