Re: Text Blinking

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Jon Spivey (jons_at_mvps.org)
Date: 01/01/05


Date: Sat, 1 Jan 2005 23:18:45 -0000

Hi,
The script Steve posted is self-contained (I recognise it as one of mine)
just copy and paste everything between (not including) the <script>
</script> tags into your script file and it will work. Only issue is the
blink won't work in netscape browsers - Steve's point about not using
<blink> is fair but if it was me I'd lose validation for the sake of browser
support and do

var b = document.all.tags("BLINK")
and then
<blink>blinking text</blink>

I don't think there's any benifit in getting validation for it's own sake -
unless you actually want to stick that little valid logo on your page. Your
choice - either way is fine.

-- 
Cheers,
Jon
Microsoft MVP
" JCO" <J.Oliviero@verizon.net> wrote in message 
news:u5FBd.31246$h.28561@trnddc04...
> If the two functions are on a script utility page that is loaded already,
> where does the
> "window.onload = startBlink" go?
>
> I'm hoping I can do it this way?
>
> "Steve Easton" <admin@95isalive.com> wrote in message
> news:ujXnIJD8EHA.3700@tk2msftngp13.phx.gbl...
>> javascript.
>>
>> <script type="text/javascript">
>> function doBlink() {
>> var b = document.all.tags("samp")
>> for ( i=0; i < b.length; i++)b[i].style.visibility =
> (b[i].style.visibility == "" )? "hidden" : "" }
>> function startBlink() {
>> if (document.all)setInterval("doBlink()",1500)}
>> window.onload = startBlink;
>> </script>
>>
>>
>> Since the <blink> tag won't validate with W3C, I use the seldom used
> <samp> tag which will validate
>>
>> surround the text you want to blink with the samp tags like this.
>>
>> <samp>This text will blink</samp>
>>
>> The script is set to blink the text every 1.5 seconds.  Do not set it
> faster than 1 second, as it
>> can cause "light flicker syndrome" seizures in people prone to Epileptic
> seizures
>>
>> -- 
>> Steve Easton
>> Microsoft MVP FrontPage
>> 95isalive
>> This site is best viewed............
>> .......................with a computer
>>
>> " JCO" <J.Oliviero@verizon.net> wrote in message
> news:p2CBd.21821$_62.18040@trnddc01...
>> > I know this can be annoying but I really need to make a certain Text
>> > Blink... for a short time.  Can somebody tell me how this is achieved?
>> > Thanks
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: Javascript and Interactive Button Conflict
    ... Your solution worked without the start and stop tags in the script, ... > tick should tickto identify it as a function ... >> Hi Steve and Stefan and thanks for your replies. ...
    (microsoft.public.frontpage.programming)
  • Re: Text Blinking
    ... Get it to validate and it won't run in NN. ... > The script Steve posted is self-contained ... > <blink> is fair but if it was me I'd lose validation for the sake of browser ... >>> surround the text you want to blink with the samp tags like this. ...
    (microsoft.public.frontpage.client)
  • Re: Dynamic loading of javascript files into web pages
    ... dynamic SCRIPT elements), it allows concurrent loading with other ... Steve Souders advocates practices which require good judgment and design to avoid maintenance issues. ... Application design and architecture is where performance affected most and it is most effective when it is simple enough to communicate it. ... Steve and John talked about performance in a later presentation where John discussed the DEFER attribute in a way that are incorrect. ...
    (comp.lang.javascript)
  • Re: A serious question about cgi (intermediate-newbie)
    ... If so, your script ... period of time because of nested table tags. ... What I find effective is collecting log entries for an offender ... call his employer, have your favorite attorney write his employer. ...
    (comp.lang.perl.misc)
  • Re: IE , SCRIPT and innerHTML
    ... the way you are trying to alert it. ... Anyone know a solution to access the contents of the script tag in IE? ... Prototype.js was written by people who don't know javascript for people ... I need the script tags, so that i can create different field ...
    (comp.lang.javascript)