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 Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/ Share on other sites More sharing options...
Ken2k7 Posted September 6, 2008 Share Posted September 6, 2008 That's because it's NOT JavaScript. Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/#findComment-635285 Share on other sites More sharing options...
ballouta Posted September 6, 2008 Author Share Posted September 6, 2008 oh! ! then what is it? Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/#findComment-635319 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. Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/#findComment-635325 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) Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/#findComment-635334 Share on other sites More sharing options...
Psycho Posted September 6, 2008 Share Posted September 6, 2008 MooTools is open source: http://mootools.net/ Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/#findComment-635417 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 Link to comment https://forums.phpfreaks.com/topic/123016-javascript-name/#findComment-635442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.