inherit
190360
0
Apr 16, 2013 11:25:25 GMT -8
teabags
44
February 2013
teabags
|
Post by teabags on Mar 31, 2013 23:23:04 GMT -8
Thank you Alisha it works great Sorry but where about do you set the time to revert to normal do you change the 3000 to 30?
|
|
Alisha
Junior Member
Cake, and grief counseling, will be available at the conclusion of the test.
Posts: 308
inherit
174267
0
Jun 17, 2024 17:20:06 GMT -8
Alisha
Cake, and grief counseling, will be available at the conclusion of the test.
308
December 2011
alishabussart
|
Post by Alisha on Apr 1, 2013 12:52:25 GMT -8
teabags, For the code provided, the time is in milliseconds. This means that 3000= 3 seconds, and 30000= 30 seconds. The part in red is what you would need to change. <div id="css_Holder"><style type="text/css"> body { -moz-transform: rotate(-180deg); -o-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); } </style> </div> <script type="text/Javascript"> <!-- var time = 30000; function revert() { document.getElementById('css_Holder').innerHTML = ''; } setTimeout('revert()', time); //--> </script>
|
|
inherit
190360
0
Apr 16, 2013 11:25:25 GMT -8
teabags
44
February 2013
teabags
|
Post by teabags on Apr 16, 2013 11:21:20 GMT -8
Thanks alisha sorry didnt get back sooner
|
|
inherit
175990
0
Apr 29, 2023 8:19:26 GMT -8
temperateporcine
186
January 2012
temperateporcine
|
Post by temperateporcine on Apr 17, 2013 12:23:57 GMT -8
Internet explorer needs the line -ms-transform: rotate(180deg); added to the code thus:
<div id="css_Holder"><style type="text/css"> body { -moz-transform: rotate(-180deg); -o-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); -ms-transform: rotate(180deg); } </style> </div> <script type="text/Javascript"> <!-- var time = 30000; function revert() { document.getElementById('css_Holder').innerHTML = ''; } setTimeout('revert()', time); //--> </script>
Cool.
|
|