/    Sign up×
Community /Pin to ProfileBookmark

Blinking text and graphics

I found a script to blink text at [url]http://javascript.internet.com/text-effects/blinking-text.html[/url]

It works in IE and not in Chrome.

Any help will be greatly appreciated.

Thanks,
Rick

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@DracoMerestAug 21.2011 — The script is very old and uses references long abandoned by Netscape and

Internet Explorer. (NN4 and IE4 to be precise)

Layers and Document all have been retained for backwards comparability is

some browsers but not new ones.

The script considers there to be only two types of browsers, netscape and

internet explorer.

http://en.wikipedia.org/wiki/Cross-browser

WC3 superseded layers with getElementById in 2000. So, basically, this script

will not work until all the layer references are changed.

Have a look at: http://www.w3schools.com/css/css_display_visibility.asp
Copy linkTweet thisAlerts:
@vwphillipsAug 21.2011 — [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title></title>
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Premshree Pillai ([email protected] ) -->
<!-- Web Site: http://www.qiksearch.com -->
<!-- Begin

var blink_speed=100;


//BLINKING
function Blink(layerName,ud){
document.getElementById(layerName).style.visibility=ud?"visible":"hidden";
setTimeout(function(){ Blink(layerName,!ud); },blink_speed);
}
// End -->
</script>

</head>

<body>
<div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint">
<font color="#FF0000"><b>Welcome to the JavaScript Source!</b></font>
</div>
<script language="javascript">Blink('prem_hint',true);</script>
</body>

</html>[/CODE]
Copy linkTweet thisAlerts:
@rdettwylerauthorAug 21.2011 — Thanks so much. I appreciate the quick replys, and now have a blinking star, so as to satifsy my client.

Rick
×

Success!

Help @rdettwyler spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...