User:Pleun/openaanbod/Bookmark JS

From XPUB & Lens-Based wiki
  • Google Chrome
  • New bookmark
  • URL=


javascript:(function(){
var fileref=document.createElement('script'); 
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", "http://code.jquery.com/jquery-2.1.4.min.js");
window.setTimeout(main,1000);function main(){        
alert('hoi');   
$("a").hover(function(){        
$(this).css('background-color','#F00');  
$(this).css('font-family', 'Courier');  
var current_size = parseInt($(this).css('font-size')); 
$(this).css('font-size', current_size + 1 + 'px');         
 });    
$("img").hover(function(){   
var degrees = parseInt($(this).css('transform', 'rotate'));
$(this).css('transform','rotate' + degrees + 5 + 'deg');   
 });    
$('img').css('transform', 'rotate(135deg)');     
   };  
})();