Skip to main content

Search and Top Navigation

Ticket #5036: ticket_5036.html
File ticket_5036.html, 0.9 KB (added by gregwmay, January 02, 2010 06:18AM UTC)

sample HTML file showing the problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script src="jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
    </head>
    <body>
    	<style type="text/css">
    	   html {background-color:Black;color:White;}
    	   .highlight {background-color:Aqua;}
    	</style>
        <script type="text/javascript">
           $(document).ready(function() {
              $('#p2').bind('mouseover',function() {$(this).stop(false,true);$(this).addClass('highlight',500,function () {$(this).removeClass('highlight',500);})});
           });
        </script>
        <p id="p2">Mouseover: uses chained "addClass" and "removeClass"</p>
    </body>
</html>

Download in other formats:

Original Format