Jump to content

js function html blink


tendouser

Recommended Posts

Works on all browsers? I found one Javascript and it works in all IE, Safari, Opera, FF, Chrome.

 

...<blink></blink> is an HTML tag.

 

Try the following code and look for yourself:

 

<!doctype html>
<html lang="en-us">
   <head>
      <title>Blink test</title>
   </head>

   <body>
      <blink>This text is blinking</blink>
   </body>

</html>

create js file

function parpadear()

    {

        with (document.getElementById("parpadeo").style)

        visibility = (visibility == "visible") ? "hidden" : "visible";

    }

 

inside html file body tag

<body class="cuerpo" onload="setInterval('parpadear()', 1500)">

<span id="parpadeo" style="position:absolute;left:30px;top:30px;color:#ff3366;font-family:arial;font-size:45px;text-align: center">

        203-2799<br/>6226-6691</span>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.