scrolling webpage asp.net (C#)
-
this code doesnt work in page which has masterpage ? <script type="text/javascript"> $(document).ready(function() { $('html,body').animate({ scrollTop: 150 }, 1000); });</script>
-
this code doesnt work in page which has masterpage ? <script type="text/javascript"> $(document).ready(function() { $('html,body').animate({ scrollTop: 150 }, 1000); });</script>
Define "doesn't work". Do you get a script error in your browser's developer tools?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Define "doesn't work". Do you get a script error in your browser's developer tools?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
thanks for reply! in this page it works correctly : http://amlakehamrah.ir/[^] BUT other pages doesnt
-
thanks for reply! in this page it works correctly : http://amlakehamrah.ir/[^] BUT other pages doesnt
You're missing the point. "It doesn't work" isn't enough information for anyone to diagnose the problem. You need to describe the problem fully, including the full text of any error messages.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
You're missing the point. "It doesn't work" isn't enough information for anyone to diagnose the problem. You need to describe the problem fully, including the full text of any error messages.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Thanks for all! I have used like this and this is working now But how ??????? <script src="~/Script/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $("html,body").animate({scrollTop: 230}, 1000); }); </script> I was missing : <script src="~/Script/jquery.min.js" type="text/javascript"></script>
-
Thanks for all! I have used like this and this is working now But how ??????? <script src="~/Script/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $("html,body").animate({scrollTop: 230}, 1000); }); </script> I was missing : <script src="~/Script/jquery.min.js" type="text/javascript"></script>
Member 9473809 wrote:
I was missing : <script src="~/Script/jquery.min.js" type="text/javascript"></script>
That's to be expected. You're using jQuery from your script block, so you need to include the jQuery script before it will work.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer