Re: Text Blinking
From: Jon Spivey (jons_at_mvps.org)
Date: 01/01/05
- Next message: Chris Leeds, MVP-FrontPage: "Re: Why can't all gif or jpg files be inserted? I am following Step-."
- Previous message: Chris Leeds, MVP-FrontPage: "Re: Web pages always open in code view only"
- In reply to: JCO: "Re: Text Blinking"
- Next in thread: JCO: "Re: Text Blinking"
- Reply: JCO: "Re: Text Blinking"
- Reply: Steve Easton: "Re: Text Blinking"
- Messages sorted by: [ date ] [ thread ]
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
>> >
>> >
>>
>>
>
>
- Next message: Chris Leeds, MVP-FrontPage: "Re: Why can't all gif or jpg files be inserted? I am following Step-."
- Previous message: Chris Leeds, MVP-FrontPage: "Re: Web pages always open in code view only"
- In reply to: JCO: "Re: Text Blinking"
- Next in thread: JCO: "Re: Text Blinking"
- Reply: JCO: "Re: Text Blinking"
- Reply: Steve Easton: "Re: Text Blinking"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|