<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
>
<head>
</script>
<script>
$(
function
(){
var
changeTxt =
function
(){
$(
"#mu"
).html(
"<font style='color:red'>这些文字将会在12秒后消失</font>"
);
window.setTimeout(hideDiv,12000);
}
var
hideDiv=
function
(){
$(
"#mu"
).hide();
}
window.setTimeout(changeTxt,10000);
})
</script>
</head>
<body >
<DIV id=
"mu"
>
<font style=
"color:blue"
> 这些文字将会在10秒后改变!</font>
</DIV>
</body >
</html>