ballouta Posted September 6, 2008 Share Posted September 6, 2008 Hello I couldn't find any javascript like this found on this site: http://www.puneetsakhuja.com/ maybe because i don't know the keyword for this javascript name. please press on any title in the menu and see the effect. how i can find it somewhere? thanks in advance Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted September 6, 2008 Share Posted September 6, 2008 That's because it's NOT JavaScript. Quote Link to comment Share on other sites More sharing options...
ballouta Posted September 6, 2008 Author Share Posted September 6, 2008 oh! ! then what is it? Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 6, 2008 Share Posted September 6, 2008 Yes, it is JavaScript. If there were no JavaScript the page would "jump" to the anchor instead of having the smooth scoll effect. Just because there is no JavaScript trigger embedded directly in the links doesn't mean there is no JavaScript. You can add a JavaScript trigger to any element outside of the element itself. If fact in the head of the document there is this code <script type="text/javascript"> window.onDomReady(function(){ new SmoothScroll({duration: 1800}); }); </script> I would assume that the SmoothScroll object is in the included JS file 'mootools.js', but the author used some obfruscation on that and I'm too lazy to decode it. Quote Link to comment Share on other sites More sharing options...
ballouta Posted September 6, 2008 Author Share Posted September 6, 2008 hi mjdamato Yeah you are right, i just noticed this script tag oin the head i am testing the script now!! i downloaded the js files but some titles are scrolling smoothly, some are scrolling smoothly just in the begining then it does fast, i should fix smthg didn't know what it is yet! i am not going to use it if it is 'right proteced' but i would like to test it or maybe find another free one. www.Harariyy.com (check the titles on the right top) Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 6, 2008 Share Posted September 6, 2008 MooTools is open source: http://mootools.net/ Quote Link to comment Share on other sites More sharing options...
ballouta Posted September 6, 2008 Author Share Posted September 6, 2008 hi thanks this site is really fantastic. Do you know other similar sites? thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.