C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Blinking Text Using JavaScript


Posted Date: 04 Oct 2008    Resource Type: Code Snippets    Category: Javascript

Posted By: Meetu Choudhary       Member Level: Gold
Rating:     Points: 7



functions for the script tag in body

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);
}

call binktext function onload of body tag and
in p tag use the following line

onmouseover="prog1('p1')" onmouseout="prog2('p1')"


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



Attachments

  • sample.html (21651-4115-Me2_12.html)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Blinking Text Using JavaScript  .  Blinking Text  .  Blinking  .  Blink Text  .  Blink  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: showing image dynamically
    Previous Resource: Open popup window in center using javascript
    Return to Discussion Resource Index
    Post New Resource
    Category: Javascript


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers   BizTalk Adaptors    Web Design

    silicone halloween mask

    Contact Us    Privacy Policy    Terms Of Use