As in WordPress we can host JavaScript and implement easily.But what to do for Blogger.We can only host photo at Picasa and Video at YouTube.But where to host JavaScript File.We need JavaScript for Adding Image Sliders,Gliders etc.Some ways to host JavaScript Files are given Below.
Adding JavaScript in Post or Widget.
If the JavaScript is Small size then you can directly keep JavaScript in this Format in Post HTML or Widget HTML/JavaScript like this.
<script type="text/JavaScript"> Replace This Line with JavaScript Codes </script>
Just add JavaScript be Replacing Line 2.
Adding JavaScript in Template.
To add JavaScript in Template just add in this style.
<style type="text/javaScript"> //<![CDATA[ JavaScript Here //]]> </style>
For Better performance always keep JavaScript before </head>
Tag.
Hosting JavaScript in other Sever.
We can Host JavaScript in other Server like Google Code or Google Sites.I recommend you to use Google Site as you can host JavaScript as your wish.After hosting JavaScript just add it in Template or post Like this.
<script src='filename.js' type="text/javascript'/>
Extension should be .js or .txt .
Enjoy and Bye for today.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
0 comments on "Hosting JavaScript for Blogger.":
Post a Comment
We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam