javascript
4 posters
Page 1 of 1
javascript
hey. how add this code:
- Spoiler:
- <script type="text/javascript">
$(document).ready(function() {
2
3
$('a[href=#top]').click(function(){
4
$('html, body').animate({scrollTop:0}, 'slow');
5
return false;
6
});
7
8
});
</script>
Re: javascript
- Code:
$(document).ready(function() {
2
3
$('a[href=#top]').click(function(){
4
$('html, body').animate({scrollTop:0}, 'slow');
5
return false;
6
});
7
8
});
Try adding this code to the java script management and slecte all pages.
The code bellow by sl gary will work.
Last edited by Sir. Mayo on January 17th 2014, 1:19 am; edited 1 time in total
Re: javascript
- Code:
<script type="text/javascript">
$(document).ready(function() {
$('a[href=#top]').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
return false;
});
});
</script>
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: javascript
Hello,
Are you adding this in Javascript codes management ? If so you will need to remove the script tags.
Are you adding this in Javascript codes management ? If so you will need to remove the script tags.
- Code:
$(document).ready(function() {
$('a[href=#top]').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
return false;
});
});
Re: javascript
Do you have JavaScript Management activated?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Javascript- More then 1 javascript code
» RSS->JavaScript
» javascript
» Javascript
» New Pm JavaScript
» RSS->JavaScript
» javascript
» Javascript
» New Pm JavaScript
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum