Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="javascript: openNext('000001')"><img /></a>
- <div id="somecontainer">
- <a href="#000001"><img /></a>
- ...
- </div>
- <script type="text/javascript">
- $(function() {
- $('#somecontainer a').click(function() {
- var id = $(this).attr('href').substring(1);
- openNext(id);
- return false; // to cancel native click event
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement