blinking text....

M

Mike Mueller

: How do i make blinking text in a theme? what is the html
: code for blinking text? :)


text-decoration: blinkDoes not appear to be compatible with
all browsers. I use IE and nerver noticed it on one of my
pages. I started using Mozilla Firebird and found out I
set this on one of my pagesMike
 
S

Steve Easton

Requires javascript.

Place this between the head tags:

<script type="text/javascript">
<!--
function doBlink() {
var b = document.all.tags("BLINK")
for ( i=0; i < b.length; i++)b.style.visibility = (b.style.visibility
== "" )? "hidden" : "" }
function startBlink() {
if (document.all)setInterval("doBlink()",1000)}
window.onload = startBlink;
//-->
</script>

And surround the text you want to blink with <blink></blink>

<blink>This text will blink</blink>

The value 1000 sets a blink rate of 1 second on and one second off.
2000 would be two seconds on and off.
Don't set the value below 1000 because faster blink rates can
cause light flicker syndrome seizures in people who are prone
to epileptic seizures.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top