My JavaScript book is out! Don't miss the opportunity to upgrade your beginner or average dev skills.

Monday, January 21, 2008

JSmile ? Even more simple with an AntiPixel ;)

I've created an antipixel gif to add JSmile easily in your site too.

What should you do to add JSmile?
Copy and past this code wherever you like in your website.

alt="JSmile - by Web Reflection"
title="JSmile - by Web Reflection"
onclick="if(window.JSmile){JSmile(document.body)}else{var i=setInterval(function(){if(window.JSmile){clearInterval(i);JSmile(document.body)}},20),s=document.createElement('script');s.src='';document.body.appendChild(s)}"

Done? Perceft, now when you want, click in JSmile antipixel and your site will be more rich.

Too simple? :o


EterniCode said...

Sounds perfect for my blogs :D

Unfortunately, doesn't seem to exist at the moment :( Do you know if this is a permanent or temporary downage?

Perhaps you could email me the code? Less than 1KB, it should be able to fit in the head of a blog's HTML ;)

Andrea Giammarchi said...

Please EternyCode, try again and sorry for this temporary inconvenient :)

EterniCode said...

Works great! :D