jQuery fans blog and community sharing news, plugins, video tutorials, demos and more.

Using Hash Urls with jQuery Example

Many modern web apps these days use hash urls to add uniqueness (like a page tag, section, action etc…) to a page without refreshing it youn can identify it. This is following on from Getting Url Parameters Using jQuery to pass dynamic data to the…

Continue reading →

Update images with a specific src (relative path) with absolute path

jQuery code snippet to update images with a domain name, turning it from a relative path into an absolute path. Sometimes useful when testing across domains with the same static content or pulling images from an external domain. (function ($) {     $(document).ready(function ()…

Continue reading →

Dynamic Update of Alt Tags on Hover

Proof of concept for changing alt tags/title tags on hover dynamically it gets picked up automatically by browsers and displayed as the usual “alt/title tooltip”. There is obviously no benefit to SEO using this but was good to prove it works. Check out me fiddle…

Continue reading →

jQuery Snippet Capture Horizontal Scroll

Just a jQuery Code Snippet to Capture Horizontal Scrolling. //capture horizontal scroll $(window).bind(’scroll’, function() {      //check if it’s hit the leftmost scroll point     if ($(document).scrollLeft() == 0)     {           //scroll horizontal     } });

Continue reading →

Add set value of select box using url param

jQuery code snippet to add/set value of select box using a supplied url parameter. <script lang="text/javascript"> jQuery(document).ready(function() {     $.urlParam = function(name){         var results = new RegExp(’[\\?&amp;]‘ + name + ‘=([^&amp;#]*)’).exec(window.location.href);         return results[1] || 0;  …

Continue reading →

Page 2 of 47 1 2 3 4 5 ... Last →
promote your blog
Best CDN
scroll to top