javascript| Page | rotate
Rotation filter can make the picture rotate effect, note must be IE5.5 and IE6.0 to see!
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312"
<style>
Body img{border:3 Gold Ridge}
</style>
//the CS code to add a border to the picture
<title> use JavaScript to rotate a Web page picture </title>
<script language= "JavaScript" >
Var i=0;
Function playimg ()
{
image.style.filter= "progid:DXImageTransform.Microsoft.BasicImage (rotation=" +i+ ") ";
i++;
if (i>4)
{i=1};
Mytimeout=settimeout ("playimg ()", 1500);
}
</script>
//above is the code that transforms the picture in four directions
<body bgcolor= "#FFFFFF" text= "#000000"
//Modify the body to display the effect for loading
< /body>
</body>
<ptml><pead><meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "><style>body img{border:3 gold ridge}</style> <title> use JavaScript to rotate the image of a Web page </title><script language= "javascript" >var i=0; function playimg () {image.style.filter= "Progid:DXImageTransform.Microsoft.BasicImage (rotation=" +i+ ")"; I++;if (i >4) {I=1}; Mytimeout=settimeout ("playimg ()", 1500); }</script></pead> <body bgcolor= "#FFFFFF" text= "#000000" ></body></body></ptml>
[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]