Tag: jQuery
-
·
Under the Hood with WordPress, Part 6: jQuery / JavaScript
Today, we’re covering jQuery and JavaScript – a power language that can manipulate elements and – in some cases – even bring content in, even after the site has loaded.
-
·
Easy Javascript ToolTips in WordPress
A client needed a simple way to preserve real estate on the sidebar, but still have the ability to display their policies at a quick glance. I found a plugin on the repository that uses the TipTip jquery script and condenses it down into a simple-to-use shortcode (complete with button on the editing screen). The…
-
·
Foursquare vs. Gowalla… annnnnd fight!
<script type=”text/javascript”>function initMenus() { $(‘ul#accordion li ul’).hide(); $.each($(‘ul#accordion’), function(){ $(‘#’ + this.id + ‘.expandfirst ul:first’).show(); }); $(‘ul#accordion li h2.widgettitle’).click( function() { var checkElement = $(this).next(); var parent = this.parentNode.parentNode.id; if($(‘#’ + parent).hasClass(‘noaccordion’)) { $(this).next().slideToggle(‘normal’); return false; } if((checkElement.is(‘ul’)) && (checkElement.is(‘:visible’))) { if($(‘#’ + parent).hasClass(‘collapsible’)) { $(‘#’ + parent + ‘ ul:visible’).slideUp(‘normal’); } return false; …