User Tools

Site Tools


jquery:allgemein

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
jquery:allgemein [2012/06/01 21:02] – external edit 127.0.0.1jquery:allgemein [2021/12/06 21:25] (current) – removed admin
Line 1: Line 1:
-====== jQuery ====== 
  
-eigene Selektoren erstellen wie [[http://www.bennadel.com/blog/547-jQuery-Custom-Selectors-Holy-Cow-That-Is-So-Badass-.htm|hier]] 
- 
-  <html> 
-  <head> 
- <title>jQuery Custom Selector Test</title> 
- <script type="text/javascript" src="jquery-latest.pack.js"></script> 
- <script type="text/javascript"> 
-   
-  ## Extend the jQuery object to include the 
-  ## custom selector "hottie" for the ":" expression. 
-  jQuery.extend( 
-  jQuery.expr[ ":" ], 
-  { 
-  hottie : ( 
-  "jQuery( a ).attr( 'rel' ) == 'girl' && " + 
-  "jQuery( a ).attr( 'hotness' ) >= 9" 
-    ) 
-    } 
-      ); 
-    
-    
-  // This will highlight the girls who are hotties. 
-  function FindHotties(){ 
-    
-  $( "ol a:hottie" ).css( "font-weight", "bold" ); 
-   
-  } 
-    
-  </script> 
-  </head> 
-  <body> 
-    
-  <ol> 
-    <li><a rel="girl" hotness="9.0">Sarah</a></li> 
-  <li><a rel="girl" hotness="8.0">Libby</a></li> 
-  <li><a rel="girl" hotness="9.0">Azure</a></li> 
-  <li><a rel="girl" hotness="8.5">Cindy</a></li> 
-  </ol> 
-    
-  <p> 
-  <a href="javascript:void(0);" 
-  onclick="FindHotties();" 
-  >Find Hotties</a> 
-  </p> 
-    
-  </body> 
-  </html> 
jquery/allgemein.1338584547.txt.gz · Last modified: (external edit)