Bug Tracker

Ticket #4886: prueba.html

File prueba.html, 991 bytes (added by ligreman, 11 years ago)

Example showing the bug

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
3
4<head>
5<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
6<script type="text/javascript">
7<!--
8$(document).ready(function() {
9        $("#b").bind("click", function() {
10                $("p span").die("click");
11        });
12});
13
14$("p span").live("mouseover", function() {
15        $(this).addClass("high");
16});
17
18$("p span").live("mouseout", function() {
19        $(this).removeClass("high");
20});
21
22$("p span").live("click", function() {
23        $(this).append(" He. ");
24});
25
26//-->
27</script>
28<style type="text/css">
29.high {
30background:#FF0;
31}
32</style>
33
34</head>
35<body>
36
37<p id="a"><span>This has a over highlight style and event 'click'.</span></p>
38
39<p><a id="b" href="#">Click here to erase the click event in the last paragraph's inner span</a></p>
40
41</body>
42</html>