is there any function in java to make the text to blink?

Answer Posted / gururaj

<HEAD>

<SCRIPT LANGUAGE="JavaScript">


window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer"
&& bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer"
&& bVer < 4);
var blink_speed=100;
var i=0;

if (NS4 || IE4) {
if (navigator.appName == "Netscape") {
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
}else{
layerStyleRef="layer.style.";
layerRef="document.all";
styleSwitch=".style";
}
}

//BLINKING
function Blink(layerName){
if (NS4 || IE4) {
if(i%2==0)
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="visible"');
}
else
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="hidden"');
}
}
if(i<1)
{
i++;
}
else
{
i--
}
setTimeout("Blink('"+layerName+"')",blink_speed);
}

</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');</script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts
provided<br>
by <a href="http://javascriptsource.com">The JavaScript
Source</a></font>
</center><p>

</BODY>
</HTML

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of extern variable?

784


What is the default value of byte datatype in java?

715


How do you use wildcards?

778


What is an anonymous class in java?

822


Can we override a variable in java?

790


What is the original name of java?

804


What is == mean?

770


Is empty .java file name a valid source file name?

832


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

935


difference between byte stream class and character stream class?

4326


What is a boolean expression in java?

794


What happens if I remove static from main method?

790


Explain the polymorphism principle?

808


What is the purpose of return statement?

850


How to connect to a remote database using Applet?

2279