Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=windows-1250">
- <meta name="generator" content="PSPad editor, www.pspad.com">
- <title></title>
- <script src="https://www.google.com/jsapi?key=ABQIAAAAWvjQ4rheBRS9yDa0S1wRchRyuSkbJV-oF1LrR1M19LCa9ptSwBRgCOSd6lkPFLw5B0M5OFxh4m7jGA" type="text/javascript"></script>
- <script language="Javascript" type="text/javascript">
- //<![CDATA[
- google.load("jquery", "1.4.2");
- google.load("jqueryui", "1.7.2");
- //]]>
- </script>
- <script>
- var rotate = function(){
- var style_rotate = $("img").attr("style");
- var checkIndex = $("img").attr("style");
- if(checkIndex.indexOf("(rotation=4)") != -1 || checkIndex.indexOf("rotate(360deg)") != -1){
- style_rotate = style_rotate+"-moz-transform: rotate(90deg);filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);";
- }
- else if(checkIndex.indexOf("(rotation=1)") != -1 || checkIndex.indexOf("rotate(90deg)") != -1){
- style_rotate = style_rotate+"-moz-transform: rotate(180deg);filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);";
- }
- else if(checkIndex.indexOf("(rotation=2)") != -1 || checkIndex.indexOf("rotate(180deg)") != -1) {
- style_rotate = style_rotate+"-moz-transform: rotate(270deg);filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);";
- }
- else if(checkIndex.indexOf("(rotation=3)") != -1 || checkIndex.indexOf("rotate(270deg)") != -1) {
- style_rotate = style_rotate+"-moz-transform: rotate(360deg);filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=4);";
- }
- $("img").attr("style", style_rotate);
- };
- $(function(){
- setInterval(rotate, 500);
- });
- </script>
- </head>
- <body>
- <div class="front">
- <img src="front.png" width="70" height="70" style="filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);"/>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement