Tag: jquery

jQuery to get anchor link URLs and texts on a page

On google chrome developer console (F12), simply run command below to get link texts printout: jQuery(“a.classname”).each( function(){ console.log( $(this).text() ); } ); If you need to get link URLs, try the code below: jQuery(“a.classname”).each( function(){ console.log( $(this).attr(‘href’) ); } ); Remember to change classname to appropriate class name. If the page you are trying to […]

jQuery news ticker

description : plugin by : ijquery.ir jQuery news ticker Three effects: fade and slide and typing . demo using : Step 1 : add jquery.js and inewsticker.js before closed body tag Step 2 : add inewsticker function $(document).ready(function() { $(‘#name’).inewsticker({ speed : 1500, effect : ‘fade’, dir : ‘ltr’, font_size : 13, color : ‘#fff’, […]

Wowslider – jQuery Slider Plugin

wowslider is a really simple jquery plugin created by ijquery.ir team. It accepts any html elements inside slider.

HowTo: Replace WordPress self hosted jQuery with Google jQuery

If your hosting server is not fast enough, you may want to replace your self-hosted #jquery with google cdn hosted jquery. You may think that you are not using that script anyways, but most of your #plugins do.

HOWTO: Add script to your theme using wp_enqueue_script

TO add a javascript file to your theme its easy to use header.php in your theme folder. However if there are plugins using same script libraries (like jquery, scriptaculous ) it may cause errors. Here i will show you how to add javascripts to your theme in a safe way using wp_enqueue_script.

Introducing dropdown menu effects

With the 1.6 update finally added jQuery effects to the dropdown menu widget. This version also brought many other features like, auto-recognizing dropdown.css in theme folder, specifiying an external theme URL, options for removing link titles and removing links from top-level categories.

Opening external links in a new window using jQuery

Using external for rel attribute on a link, you can specify that the link is outside of the current site. This attribute is commonly used for SEO and styling options. And to open a link in a new window when user clicks it you can use target attribute. What if you wanted all external links […]

Speed up your page load times with lazyload

Lazyload is a jQuery plugin delaying load of images that are out of users sight. This way your page’s visible area is loaded faster.

Adding jquery tooltips to your wordpress theme

To use a jquery plugin within your wordpress site you need to load jquery manually along with the jquery script files. In this step by step tutorial i will explain you how to add a simple jquery tooltip plugin to your site.

WordPress Countdown Widget 2.0

Wordpress countdown widget 2.0 is ready. This is a whole new widget based on jQuery. Unlike previous version this new version is more customizable and soon it will have more options than flash version. Read more to see what’s new with this version.

WP-Backgrounds Lite by InoPlugs Web Design and Juwelier Schönmann 1010 Wien