This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11308 - $(function() { $('.rollover').hover(function() { var currentImg = $(this).attr('src'); $(this).attr('src', $(this).attr('hover')); $(this).attr('hover', currentImg); }, function() { var currentImg = $(this).attr('sr
Summary: $(function() { $('.rollover').hover(function() { var currentImg =...
Status: VERIFIED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-12 09:39 UTC by contributor
Modified: 2011-08-04 05:04 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2010-11-12 09:39:13 UTC
Specification: http://dev.w3.org/html5/spec/
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#top

Comment:
$(function() {
    $('.rollover').hover(function() {
	var currentImg = $(this).attr('src');
	$(this).attr('src', $(this).attr('hover'));
	$(this).attr('hover', currentImg);
    }, function() {
	var currentImg = $(this).attr('src');
	$(this).attr('src', $(this).attr('hover'));
	$(this).attr('hover', currentImg);
    });
});


Posted from: 122.116.92.103
Comment 1 Michael[tm] Smith 2011-08-04 05:04:14 UTC
mass-move component to LC1