Update: This code has been replaced.
Save the following as a bookmarklet to dynamically get the latest versions of CSS and images, regardless of caching. This version doesn’t do CSS background images, though.
javascript:(function(){var i,j,x;x=document.getElementsByTagName('link');for(i=0,j=x.length;i<j;i++){x[i].href=x[i].href+'?'+new Date().getTime();}x=document.getElementsByTagName('img');for(i=0,j=x.length;i<j;i++){x[i].href=x[i].href+'?'+new Date().getTime();}})();
booshtukka JavaScript
moz-selection!
e.g.:
*::-moz-selection {
background:#FF2E1D none repeat scroll 0%;
color:#FFFFFF;
}
Working example:
http://www.uniqlo.co.uk/stores
booshtukka CSS
Ridiculous, but still:
jQuery.fn.shake = function(intShakes /*Amount of shakes*/, intDistance /*Shake distance*/, intDuration /*Time duration*/) {
this.each(function() {
$(this).css({position:'relative'});
for (var x=1; x<=intShakes; x++) {
$(this).animate({left:(intDistance*-1)}, (((intDuration/intShakes)/4)))
.animate({left:intDistance}, ((intDuration/intShakes)/2))
.animate({left:0}, (((intDuration/intShakes)/4)));
}
});
return this;
};
//example
$(function() {
$('#btn').click(function() {
$(this).shake(3, 6, 180);
});
});
booshtukka JavaScript, jQuery
Recently Noughted