Free goodies
IE compatibility view – How to force IE8 to use IE7 rendering mode
Jul 20th
I’ve had a problem with one of my sites, in which IE8 had a javascript error and I needed to use IE7 rendering mode, which was ok.
I this case I found two solutions:
1. Meta tag solution :
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
2. htaccess file solution
Header set X-UA-Compatible IE=EmulateIE7
In my case the .htaccess file version worked just fine
Free Magento theme
Jun 8th
jQuery back to top smooth scroll
Apr 23rd
$(document).ready(function() {
$('.totop').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
});
});
How to – detect iPhone with Java-script
Apr 23rd
Here is a javascript code snippet that will help you detect iPhone
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
if (document.cookie.indexOf("iphone_redirect=false") == -1) {
window.location = "http://website.com/iphone";
}
}


