Skip to main content

Home/ jquery/ Group items tagged image

Rss Feed Group items tagged

pagetribe .

Working with jQuery, Part 2: Building tomorrow's Web applications today - 0 views

shared by pagetribe . on 17 Dec 08 - Cached
  • // In this example, each row in a table will get a red background when // the mouse moves over it and a white background when the mouse leaves. $("tr").hover(function(){ $(this).css("background","#0000ff"); }, function(){ $(this).css("background","#ffffff"); });
  • attr(name)
  • // will change the image source, and the image displayed on the page will change $("img").attr("src", "myimage.jpg");
  • ...5 more annotations...
  • // use the val() function to get the text inside the textfield
  • // change the background of every div to red $("div").css("backgroundColor", "#ff0000"); // - or - $("div").css("backgroundColor", "red"); // - or - $("div").css({backgroundColor: "#ff0000"}); // notice the braces and lack of quotes
  • see the problem with them
  • You would definitely not want to place style code into the JavaScript code if you can help it.
  • <img src="/images/space.gif" id="spacer" class="a b c" alt="blank"> // Calls to the attr() function will return the following $("#spacer").attr("src"); // will return "/images/space.gif" $("#spacer").attr("alt"); // will return "blank" // Similarly, you can access the ID in the same way $(img).each(function(){ $(this).attr("id"); // will return "spacer" });
Joost Moerenburg

jQSlickWrap - Slick text wrapping for jQuery - 0 views

  •  
    need to wrap content around an image? ...really around an image?
Alaa Al-Hussein

Easy Gallery for jQuery - 8 views

  •  
    An Easy jQuery image gallery.
Mike More

Google+ Search Widget - 1 views

  •  
    Highly customizable search widget for Google+ that is inspired by Twitter widgets. This widget searches across the body and comments of public posts and displays a summarized version of matching posts with any attached images.
lilin_fr

Brandon Aaron » Gradient - 0 views

  • The gradient plugin adds a dynamically created configurable gradient to the background of an element without the use of images.
lilin_fr

::TexoTela:: jQuery - preload images - 0 views

  • jQuery.preloadImages = function() { for(var i = 0; i<arguments.length; i++) { jQuery("<img>").attr("src", arguments[i]); } }
1 - 11 of 11
Showing 20 items per page