Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    don
    don is offline
    New Coder
    Join Date
    Sep 2002
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    <blink> that doesn't blink.

    Is something wrong with this?

    <blink>Important!</blink>

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

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That you try to view it in something else than Netscape maybe?

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

    .foo { text-decoration: blink }
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #4
    don
    don is offline
    New Coder
    Join Date
    Sep 2002
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, I finally decided it was probably <blink>irritating</blink> anyway.


  • #5
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh sorry jkd. I didn't see your post until now. Guess I'm a slow typer.
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:

    Code:
    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.

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    don...
    /me just a has® this bookmarked from just a longgg® time back...
    http://www.siteexperts.com/tips/html/ts12/page1.asp

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reference link, I'll add it to the code I have so that credit will be properly offered.

  • #9
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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)))

  • #11
    New Coder
    Join Date
    Dec 2002
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts
    here's also the link too the javascript
    http://javascript.internet.com/messa...king-text.html
    print="TO Ask Will Unmask The Obvious-Jose 2002";


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •