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
Why there is no call by reference in java?
Is array size fixed in java?
What is the difference between numeric and integer?
How do you find the absolute value?
Can an interface extend another interface?
What is the primitive type byte?
Can I override protected method in java?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is meant by attribute?
What is the full form of jpeg?
What is stored procedure. How do you create stored procedure ?
Difference between operator overloading and function overloading
How do you achieve polymorphism in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?