Tuesday, December 1, 2009

[jQuery] [Jquery Block]my code didn't work in ie7 correctly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/jquery.blockUI.js"></script>

<script>
$(document).ready(function(){

$("#test").click(function(){
$("#bbb").parent().block({ message: null });
});

});
</script>
</head>

<body>
<input type="button" name="test" id="test" value="按鈕" />
<div id="aaa"><img src="3.jpg" name="bbb" width="296" height="217"
id="bbb" /></div>
</body>
</html>

In IE7 the wole screen will become black for a moment
but in firefox , opera, chorme are works correctly

No comments: