...

View Full Version : <blink> that doesn't blink.



don
01-15-2003, 08:18 PM
Is something wrong with this?

<blink>Important!</blink>

Not the end of the world, I can use bold red.

jkd
01-15-2003, 08:25 PM
Mozilla/Netscape are the only browsers to support <blink>.

It is not part of the HTML specification, and:
text-decoration: blink;
is only an optional part of the CSS2 specification.

meow
01-15-2003, 08:26 PM
That you try to view it in something else than Netscape maybe? :p

Try the CSS version and you will get at least modern Netscape/Moz and Opera.

.foo { text-decoration: blink }

don
01-15-2003, 09:03 PM
Thanks, I finally decided it was probably <blink>irritating</blink> anyway.

:)

meow
01-15-2003, 09:15 PM
Oh sorry jkd. I didn't see your post until now. Guess I'm a slow typer. :o

Roy Sinclair
01-15-2003, 10:13 PM
Blinking test is a bad idea, it makes text hard to read because it keeps vanishing. If you insist and also want IE to blink too, the following will do the trick:



Blink.htc

<public:component>

<public:property name="msec" value="500"/>
<public:method name="blink"/>
<public:method name="pause"/>
<public:attach event="oncontentready" onevent="initBlink()"/>
<public:attach event="onpropertychange" onevent="checkProperty()"/>
</public:component>

<script language="JScript">

// Declare a reference to the interval
var blinkInterval;

function initBlink() {
if (element.style.visibilty == null) element.style.visibility = "visible";
blinkInterval = window.setInterval(element.uniqueID +".blink()", msec);
paused = false;
}

function blink() {
element.style.visibility = (element.style.visibility == "visible") ? "hidden" : "visible";
}

function pause() {
if (paused)
blinkInterval = window.setInterval(element.uniqueID + ".blink()", msec);
else
window.clearInterval(blinkInterval);
paused = !paused;
}

function checkProperty() {
window.status = event.propertyName;
if (event.propertyName == "msec") {
element.pause();
element.pause();
}

}
</script>


blinker.htm

<html>
<head>
<title>Testing</title>
<style>
blink {behavior: url(blink.htc);}
</style>
</head>
<body>
Normal text<br>
<blink>Blinking text</blink><br>
More normal text<br>
</body>
</html>



Not my code, unfortunately I can't remember where I first ran across it so I can properly attribute the author and they didn't put anything into the code itself to help remind me. I kept it mainly because I was interested in the methods it used.

justame
01-16-2003, 01:40 AM
don...
/me just a has® this bookmarked from just a longgg® time back...
http://www.siteexperts.com/tips/html/ts12/page1.asp

Roy Sinclair
01-16-2003, 04:02 PM
Thanks for the reference link, I'll add it to the code I have so that credit will be properly offered.

Spookster
01-16-2003, 04:32 PM
Or if you want just a complete cross-browserness (is that even a word?) then just a make a animated gif with the text just a blinkin.

Hey there just a you where the heck you been?

justame
01-16-2003, 07:44 PM
roy...
you mean thattt link just a goes® to the same 'code' that ya posted???...lol...

spook...
welll...tis been just a longgg® past year n' just a half® with grampa n' his health...sooo guessin' ya could say /me has been just a going® from one operation to the next with him :O((( ...'cept nooowww seems 'cept for one little (???) 'bleed' hes starting to recover n' hoping that the doc we see tomorrow will know what the code... errr cure is for it...:O)))

sooo...nowww /me is just a trying® to once just a gain® help out where/when she can...:O)))

Xphp->UG-S<-
01-17-2003, 02:17 AM
here's also the link too the javascript
http://javascript.internet.com/messages/blinking-text.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum