Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html lang="en-US"><head>
- <title>Cross Browser Blinking Text</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <meta name="created" content="Thu, 19 May 2011 02:14:20 GMT">
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="author" content="PayneLess Designs">
- <meta name="copyright" content="Jan 2004 to present.">
- <style type="text/css">
- * { margin: 0; padding: 0; border: 0; }
- #wrap {
- width: 960px;
- margin: 0 auto;
- }
- h1 { text-align: center; }
- p { margin: 3% 0; }
- blink {
- font-family: helvetica, arial, 'times new roman', sans-serif;
- font-size: 1em;
- color: #fff;
- line-height: 1em;
- padding: 5px;
- background: #000;
- }
- </style>
- <script type="text/javascript">
- <!--
- function doBlink() {
- var blink = document.all.tags("BLINK")
- for (var i=0; i<blink.length; i++)
- blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
- }
- function startBlink() {
- if (document.all)
- setInterval("doBlink()",1000)
- }
- window.onload = startBlink;
- // -->
- </script>
- <!--[if IE]>
- <link rel="stylesheet" type="text/css" href="iestyle.css">
- <![endif]-->
- </head><body>
- <div id="wrap">
- <h1>Cross Browser Blinking Text</h1>
- <p>Place the script between your <head> & </head> tags. Then use the <blink> and </blink> tags around the text you would like to have blinking.</p>
- <pre>
- <script type="text/javascript">
- <!--
- function doBlink() {
- var blink = document.all.tags("BLINK")
- for (var i=0; i<blink.length; i++)
- blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
- }
- function startBlink() {
- if (document.all)
- setInterval("doBlink()",1000)
- }
- window.onload = startBlink;
- // -->
- </script>
- </pre>
- <p>Use the <blink>Text Here</blink> anywhere in the <body> of your html document.</p>
- <p>Example:</p>
- <p>Use the <blink>"Blink Text Here"</blink> anywhere in the <body> of your html document. The "blink" tag is undefined for the document type being used here.</p>
- </div>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement