Even when things are going good and fine, there's nothing wrong in making them.. better. Here is a hack on the et Smiley script for Blogger (and all other blogs) which brings in more smiles.
This update is mainly aimed at users experiencing JavaScript conflicts while using the et Smiley set with other scripts, resulting in any of the scripts not working properly.
The hack is to initialize the script manually. This can also result in a faster loading of the smiley script.
The smiley script waits until the entire page loads before it makes the smileys appear. But sometimes it has to wait until some small missing element in the page is loaded. This new method loads the script as soon as it is safe for it to load. No extra waiting!
So, the users who are currently happy with the script can just move on. Anyhow, if they find the improvisation discussed above interesting, feel free to try out the new method.
Let us see how it works:
Refer to the post from which you added the smiley script (Smileys for Blogger or Smileys for any blog/website) and remove the added lines of code.
Note: This update doesn't concern the smiley panel over comment form in anyway
Find the portion </head> in your blog's HTML code
Now just before </head>, add the following code
For Blogger blogs:
For other blogs/websites:
Yet again, add the following code just before this part
And you're done! This should solve any JavaScript conflicts caused by the smiley script :)
Note: If you're not using a Blogger blog, and adding the smiley script for the first time, also follow the additional Step #2 in this post for the smileys to work
This update is mainly aimed at users experiencing JavaScript conflicts while using the et Smiley set with other scripts, resulting in any of the scripts not working properly.
The hack is to initialize the script manually. This can also result in a faster loading of the smiley script.
The smiley script waits until the entire page loads before it makes the smileys appear. But sometimes it has to wait until some small missing element in the page is loaded. This new method loads the script as soon as it is safe for it to load. No extra waiting!
So, the users who are currently happy with the script can just move on. Anyhow, if they find the improvisation discussed above interesting, feel free to try out the new method.
Let us see how it works:
Step #0 (old users)
Users who are already using the smiley script and changing to the new method, make sure to remove the script currently in use.Refer to the post from which you added the smiley script (Smileys for Blogger or Smileys for any blog/website) and remove the added lines of code.
Note: This update doesn't concern the smiley panel over comment form in anyway
Step #1
In your Blogger Dashboard, click the More Options down arrow next to your blog and select Template. In Template page, click the Edit HTML button. Find the portion </head> in your blog's HTML code
Now just before </head>, add the following code
For Blogger blogs:
<script src="https://et-smileys.googlecode.com/svn/trunk/etSmileys_blogger_control.js" type="text/javascript"/>
For other blogs/websites:
<script
src="https://et-smileys.googlecode.com/svn/trunk/etSmileys_control.js"
type="text/javascript"/>
Step #2
Again, in the HTML code find the portion </body>Yet again, add the following code just before this part
<script
type="text/javascript"> etSmileys(); </script>
And you're done! This should solve any JavaScript conflicts caused by the smiley script :)
Note: If you're not using a Blogger blog, and adding the smiley script for the first time, also follow the additional Step #2 in this post for the smileys to work