Friday, February 17, 2012

Insert Javascript in Blogger Template and Posts


1)How to Insert Javascript in the Template


Design > Edit HTML

Now you Search with Browser for the string "text/javascript"


Cmd+f on a Mac
Ctrl+f on a PC
Look for "text/javascript"

And...
Take Note of the Position you Found It! At Google there are Wise Guys and they Know that the Best Position to put Javascript Code for Site Functionality is: the End of the Body
The idea to put Javascript in the head has been largely diffused Simply because that the best way to keep Ordered and Readable your HTML Content... But now if you look at how HTML is Loading you will arrive to understand than it's Best to Load Before some Content and Images than Code. In Fact there is an Human Looking at the Screen and he Doesn't like so much Waiting in front a Blank or Messy Image :)


Insert Highlighted Code to Test
Save Template
If you have Inserted an Alert command just Click on View Blog to verify than is Working! :)
If you need to Insert Javascript in your Post Look right to the Next Section.

2)Hot to Insert Javascript in the Posts





Insert Code at the Post's Bottom
To Test Insert Highlighted Code
Publish and View Post to Verify

Keywords: Blog, Blogger, Blogger Tutorial, Hot to Insert Javascript in the Posts, How to Insert Javascript in the Template, Javascript, Tutorials.


0 comentarii:

Post a Comment