Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1012 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 1012 Bytes

Clickables

Clickables is a MooTools plugin that allows non-anchor items to clicked like standard links. The first anchor in the element will be used for the link URL.

Screenshot

How to Use

Clickables can be initialized at any time but is generally initialized at the top of the document during the page's normal load. There are no required arguments -- only options.

HTML

<ul class="block-list">
	<li>Clicking this block will take you to <a href="http://davidwalsh.name">DavidWalsh.name</a></li>
	<li>Clicking this block will take you to <a href="http://scriptandstyle.com">Script&Style.com</a>.</li>
	<li>Clicking this block will take you to <a href="http://mootools.net">MooTools.net</a></li>
</ul>

Javascript

var clix = new dwClickables({
	elements: $$('.block-list li'),
	anchorToSpan: true
});	

For specific usage and options, please read the documentation or visit http://davidwalsh.name/js/clickables