The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

javascript

View previous topic View next topic Go down

In progress javascript

Post by delicious on January 16th 2014, 9:00 pm

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>
to javascript? when i add, nothing change, should be change.

delicious
Forumember

Female Posts : 213
Reputation : 1
Language : lithuanian

http://wildchild.forumlt.com/

Back to top Go down

In progress Re: javascript

Post by Sir. Mayo on January 17th 2014, 1:08 am

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, 2:19 am; edited 1 time in total

Sir. Mayo
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

In progress Re: javascript

Post by SLGray on January 17th 2014, 2:05 am

Code:
<script type="text/javascript">
$(document).ready(function() {
 $('a[href=#top]').click(function(){
    $('html, body').animate({scrollTop:0}, 'slow');
    return false;
 });
});
</script>
You needed to remove the numbers.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36641
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: javascript

Post by delicious on January 18th 2014, 7:11 pm

try add both of you codes, no one change

delicious
Forumember

Female Posts : 213
Reputation : 1
Language : lithuanian

http://wildchild.forumlt.com/

Back to top Go down

In progress Re: javascript

Post by Ange Tuteur on January 18th 2014, 8:07 pm

Hello,

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;
 });
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: javascript

Post by delicious on January 20th 2014, 10:11 pm

yes, I add to Javascript codes management, but again nothing has changed

delicious
Forumember

Female Posts : 213
Reputation : 1
Language : lithuanian

http://wildchild.forumlt.com/

Back to top Go down

In progress Re: javascript

Post by Ange Tuteur on January 20th 2014, 10:18 pm

Do you know what the script changes ?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: javascript

Post by SLGray on January 21st 2014, 12:43 am

Do you have JavaScript Management activated?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36641
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum