User:Pleun/openaanbod/Bookmark JS: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "*Google Chrome *New bookmark *URL= javascript:(function(){ var fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript"); fileref.setAttr...")
 
(No difference)

Latest revision as of 14:33, 29 October 2015

  • 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)');     
   };  
})();