Skip to main content

Home/ jquery/ Group items tagged css

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" });
jdr santos

David Walsh Blog :: PHP, MySQL, CSS, Javascript, MooTools, and Everything Else - 0 views

  •  
    Become a complete programmer with PHP, CSS, MooTools, jQuery, and everything else.
pagetribe .

Create simple tooltips with CSS and jQuery - Part 2: Smart Tooltips | Kriesi.at - new m... - 0 views

  •  
    $(window).scrollTop();
Mike More

18 Most Popular jQuery Plugins of March 2012 - 0 views

  •  
    It is time we go through our monthly roundup of the most popular jQuery plugins of March 2012, you will definitely want to try these.
Mike More

15 Most Popular jQuery Plugins of June 2012 - 0 views

  •  
    Another month has passed and it's time for the jQuery plugins roundup. Keep on reading to see what plugins you might have missed in June 2012.
Mike More

8 Most Popular jQuery Plugins of January 2012 - 2 views

  •  
    Last month developers were busy with jQuery and it is time to go through some of the most popular jQuery plugins they created in January 2012.
mesbah095

Guest Post Online - 0 views

  •  
    Article Writing & Guestpost You Can Join this Site for Your Article & guest post, Just Easy way to join this site & total free Article site. This site article post to totally free Way. Guest Post & Article Post live to Life time only for Current & this time new User. http://guestpostonline.com
pagetribe .

Working with jQuery, Part 1: Bringing desktop applications to the browser - 0 views

shared by pagetribe . on 17 Dec 08 - Cached
  • $("p").css("background", "#ff0000");
1 - 20 of 20
Showing 20 items per page