User:Pleun/openaanbod/Bookmark JS

From XPUB & Lens-Based wiki
< User:Pleun
Revision as of 13:33, 29 October 2015 by Pleun (talk | contribs) (Created page with "*Google Chrome *New bookmark *URL= javascript:(function(){ var fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript"); fileref.setAttr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • 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)');     
   };  
})();