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

Answers were Sorted based on User's Feedback



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

Answer / raj g

This functionality available in javascript.

Is This Answer Correct ?    7 Yes 1 No

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

Answer / praveena

mr Gururaj could show that blink in different colours

Is This Answer Correct ?    2 Yes 0 No

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

Answer / praveena tadiboyina

for above blink in different colours here it is

<%@ page contentType="text/html;charset=windows-1252"%>
<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
var count=0;
var color=new Array
("#8B0000","#00C7FF","#2F4F4F","#FF8C00","#BDB76B");
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){
var mtext=document.getElementById("mytext");
mtext.style.color=color[count];
count++;
if(count > 4)
{
count=0;
}


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">
<b>
<span id="mytext">Welcome to the JavaScript Source!</span>
</b>
</div>
<script language="javascript">Blink('prem_hint');</script>

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

</BODY>
</HTML>

Is This Answer Correct ?    2 Yes 1 No

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

Answer / mohit

yes we can do with the help of THREAD and TIMER in java

Is This Answer Correct ?    1 Yes 0 No

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

Answer / 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

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

Answer / raseek

ok Raj can u give the script coding

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Core Java Interview Questions

how to write a program for chat function using core java

1 Answers   Satyam,


Why is sizeof not a function?

0 Answers  


Explain what access modifiers can be used for variables?

0 Answers  


Is string a datatype?

0 Answers  


What is string builder in java?

0 Answers  






How do you reverse sort a list in java?

0 Answers  


How many bits is a string?

0 Answers  


What are the advantages of java inner classes?

0 Answers  


how to convert Java project into Maven ?

0 Answers   Infosys,


Difference between array and arraylist.

23 Answers   Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,


Tell me the programme for this @ 1 2 @ @ @ 1 2 3 4

5 Answers   Accenture, iGate, IntoNET, Value Labs,


Is set ordered in java?

0 Answers  


Categories