Post: Cool little JS code
09-30-2011, 04:16 AM #1
Default Avatar
Cade
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); This code was made by Alfa, I just edited and made it compatible with NGU.

All you have to do is type "javascript:" in the address bar then paste the below code.

    i=0;
function repeat()
{
document.getElementsByClassName("button")[2].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[3].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[4].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[5].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[6].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[7].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[8].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
document.getElementsByClassName("button")[9].setAttribute( "style", "-moz-transform: rotate("+i+"deg);-webkit-transform:rotate("+i+"deg);-o-transform: rotate("+i+"deg);");
i++;
}
setInterval("repeat()",1);




Note: You must have access to the shoutbox and must be on the NGU homepage when using this :p
(adsbygoogle = window.adsbygoogle || []).push({});
09-30-2011, 04:19 AM #2
Default Avatar
Cammy
Guest
Doesn't work on Opera Gaspkay:
09-30-2011, 04:19 AM #3
Alfa
Banned
you forgot to say it effects the shoutbox so they have to be able to view the shoutbox on the page they are using it on
09-30-2011, 04:20 AM #4
Default Avatar
Cade
Guest
Originally posted by Cammmmy View Post
Doesn't work on Opera Gaspkay:


:yuno: learn to use chrome?

---------- Post added at 11:20 PM ---------- Previous post was at 11:19 PM ----------

Originally posted by Paki
you forgot to say it effects the shoutbox so they have to be able to view the shoutbox on the page they are using it on


:derp: You must login or register to view this content.
09-30-2011, 04:22 AM #5
Alfa
Banned
Originally posted by Team
:yuno: learn to use chrome?

---------- Post added at 11:20 PM ---------- Previous post was at 11:19 PM ----------



:derp: You must login or register to view this content.


sorry it was tl;dr
10-01-2011, 03:59 AM #6
Pichu
RIP PICHU.
Originally posted by Paki
sorry it was tl;dr


Then you are a lazy Mofo...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo