让网页的Title标题文字倒序显示

<!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" />

<title>网页的Title标题文字倒序显示</title>

</head>

<body bgcolor="#ffffff" onload="newtext()">

<script language=javascript >

var text=document.title

var timerID

function newtext() {

            clearTimeout(timerID)                  

            document.title=text.substring(1,text.length)+text.substring(0,1)

            text=document.title.substring(0,text.length)

            timerID = setTimeout("newtext()", 100)

}

</script>

</body>

</html>


你可能感兴趣的:(网页)