.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> ASP.NET Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Blinking Text Using JavaScript

Posted By:Meetu Choudhary       Posted Date: June 08, 2009    Points: 10    Category: ASP.NET Controls    URL: http://www.dotnetspark.com  
 

Blinking Text Using JavaScript

functions for the script tag in body
[code]
function prog1(objid)
{
var obj;
obj=window.document.getElementById(objid);
obj.style.backgroundColor="red";
obj.style.color="yellow";
}
function prog2(objid)
{
var obj;
obj=document.getElementById(objid);
obj.style.backgroundColor="yellow";
obj.style.color="red";
}
function blinktext()
{
if(p3.style.visibility=="visible")
{
p3.style.visibility="hidden";
}
else
{
p3.style.visibility="visible";
}
window.setTimeout("blinktext()",300);
}
[/code]
call binktext function onload of body tag and
in p tag use the following line
[code]
onmouseover="prog1('p1')" onmouseout="prog2('p1')"
[/code]

for more details please see the attachment
--
Thanks and Regards
Meetu Choudhary

     

Further Readings:

Responses
Author: sham         Company URL: http://www.dotnetspark.com
Posted Date: July 06, 2009

WHAT IS THIS FULL CODE PLZ EXPLAIN ME?
Author: Meetu Choudhary         Company URL: http://www.dotnetspark.com
Posted Date: July 06, 2009

The code provided above is sufficient what you haven't understood ask that specifically.

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend