The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

javascript

4 posters

Go down

In progress javascript

Post by delicious January 16th 2014, 8:00 pm

hey. how add this code:
Spoiler:
to javascript? when i add, nothing change, should be change.
delicious
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 January 17th 2014, 12: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, 1:19 am; edited 1 time in total
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 980
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

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

Back to top Go down

In progress Re: javascript

Post by SLGray January 17th 2014, 1: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.


javascript Slgray10

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

Male Posts : 51481
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: javascript

Post by delicious January 18th 2014, 6:11 pm

try add both of you codes, no one change
delicious
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 January 18th 2014, 7: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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: javascript

Post by delicious January 20th 2014, 9:11 pm

yes, I add to Javascript codes management, but again nothing has changed
delicious
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 January 20th 2014, 9:18 pm

Do you know what the script changes ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: javascript

Post by SLGray January 20th 2014, 11:43 pm

Do you have JavaScript Management activated?


javascript Slgray10

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

Male Posts : 51481
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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