Jump to content
  • Revista PROGRAMAR: Já está disponível a edição #60 da revista programar. Faz já o download aqui!

Sign in to follow this  
MasterGipy

Texto que gira em torno de si proprio

Recommended Posts

MasterGipy

Este código não é da minha autoria mas como achei engraçado decidi postar aqui =P

<html>
<script src=”360.js”></script>
<body onload=”spin();”>
<h3 id=”lol”>Hello World.</h3>
</body>
</html>

spin();
var a = 1;
function spin()
{
a=a+5;
document.getElementById("lol").style.MozTransform="rotate("+a+"deg)";
setTimeout("head()",150);
}
function head()
{
setTimeout("spin()",150);
}

//Credits to: Johan Edholm
function flip(){
document.getElementsByTagName(String.fromCharCode(98,111,100,121))[0x0].style.MozTransform=String.fromCharCode(114,111,116,97,116,101,40,49,56,48,100,101,103,41);
}
function antiflip(){
document.getElementsByTagName(String.fromCharCode(98,111,100,121))[0x0].style.MozTransform=String.fromCharCode(114,111,116,97,116,101,40,48,100,101,103,41);
}

:cheesygrin:

Share this post


Link to post
Share on other sites
mjamado

Assim de repente, e sem experimentar, parece-me que só funciona no Firefox...


"Para desenhar um website, não tenho que saber distinguir server-side de client-side" - um membro do fórum que se auto-intitula webdesigner. Temo pelo futuro da web.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.