Saturday, July 24, 2010

Upload/host Javascript Or .js files to Google Sites?


We already know how to Upload/host all Javascript or .js files on Blogger with unlimited bandwidth.

But we can not upload all the scripts in that way directly on blogger. Like in case of 
Numbered Page Navigation for bloggerscript. 

Then you can upload such scripts on Google Sites. Using it you can upload and share your scripts.


So let's start.

First login to G mail account. Then go to the link 
http://sites.google.com/?pli=1

Enter password of G Mail and sign in. Click on Create Site.
Choose Blank Template. Give a name to your site and hit create site.

Then click on Create Page > File Cabinet. Give a name and create page. You will be directed to following type of page.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdFJ13HbHHqNzn03UQ8sZW9JNBU9-SeF2kgeXH1v20L9F9i1DKlxUiNMgiRSS6IlzUNMkhyphenhyphenqYXi3y4mdMjC4mUa-Jbv7LOl5kZ_fUYx_121myxMFsg2k0nso4WEEWkpGTbuY9ZRZL8Aeqd/s1600/Uploadhost+Javascript+Or+js+files+to+Google+Sites.JPG

To upload script click on ADD FILE. Select your file and upload it. After the file is uploaded it will be present in the files list. Below each file you will see Download link.

Like that-

http://sites.google.com/site/freebloggerhelpbiz/freebloggerhelp/Popularpostsbyfree-blogger-help.blogspot.com.txt?attredirects=0&d=1

But you can't use this link directly as it will give error. To use it correctly just remove the Question mark (?) and all the text after that question mark. Then the correct link will be

http://sites.google.com/site/freebloggerhelpbiz/freebloggerhelp/Popularpostsbyfree-blogger-help.blogspot.com.txt

You can now use this script in your template. Do the same with all other scripts.

No comments:

Post a Comment