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 does singleton mean in java?

732


what is mutual exclusion? : Java thread

778


How can you write a loop indefinitely in java programming?

771


What is java objectoutputstream?

757


What is return in java?

743


What is a class variable?

807


Where are register variables stored?

815


Give few difference between constructor and method?

742


Distinguish between a predicate and a function?

775


What are some examples of variable costs?

721


What is the difference between equals() and?

836


What mechanism does java use for memory management?

727


Explain the selection sort algorithm and state its time complexity?

824


Should database connections be singleton?

769


What is meant by data hiding/encapsulation?

831