| jquery biggerlink |
|
|
|
| Written by LXR | |||
| Saturday, 10 November 2007 22:05 | |||
A jQuery plugin to make it really easy to enable the specified element/s to behave as a proxy for their first contained link. From:http://www.ollicle.com/eg/jquery/biggerlink/ Download:http://www.hotajax.org/download/jquery/jquery_biggerlink.zip Didn't work in firefox DefaultsNormally this plugin will need very little configuration - although you do need to point it at the element/s on which you wish it to act. HTML of an element which contains a link whose behaviour you wish the element to inherit. In this case the <li> elements. <ul class="links"> JavaScript in the document head <script type="text/javascript"src="/jquery-1.2.1.pack.js"> With JavaScript pop-upsHTML as above. (Note the added title attributes will be applied to the <li> elements by the plugin). <ul class="links"> JavaScript. Setting follow to false ensures the link will not be followed by the browser as it would by default; Thus not interferring with the action os JavaScript pop-ups applied to the same link. <script type="text/javascript"src="/jquery-1.2.1.pack.js"></script> Using custom classesBy default the plugin applies classes to the target elements: hoverclass - class added to the parent element when hovering over it with you cursor or focusing a link it contains. By default this class is hover. clickableclass - class added to each selected element which contains at least one link. By default this class is hot. Particularly useful if you wish to make the element appear 'clickable' when the link behaviours are assigned to it. HTML. Nothing new here: <ul class="links"> JavaScript. If by chance these classes conflict with other classes in your document they may be customised: <script type="text/javascript"src="/jquery-1.2.1.pack.js"></script> Worth notingThe plugin will use the URL of the first link within the selected element. If there is a second link with a different URL it’s action will be overridden - using the URL of the first link instead.
Set as favorite
Bookmark
Email This
Hits: 3348 Comments (0)
![]() Write comment
Newer news items:
Older news items:
|




