C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Javascript »

Blinking Text Using JavaScript


Posted Date: 04 Oct 2008    Resource Type: Code Snippets    Category: Javascript
Author: Miss Meetu ChoudharyMember Level: Diamond    
Rating: 1 out of 5Points: 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

    Author: nisar    13 Apr 2009Member Level: Gold   Points : 1
    hey Meetu Choudhary, my requirement is to blank image when click on it, i am using For this what kind of changing is required


    Author: Miss Meetu Choudhary    13 Apr 2009Member Level: Diamond   Points : 1
    hey nissar i didn't get what you are trying to ask.
    could you please be more specific towards your requirement.

    ++
    Thanks and Regards
    Meetu Choudhary



    Author: nisar    13 Apr 2009Member Level: Gold   Points : 1
    actually i want to blink an image onclick
    i am using asp:imagebutton, i want whenever someone click on this button it start blinking and stop whenever page is post back, please suggest me what should i do to achieve this functionality


    Author: R.Jaya kumar (JK)    20 Jun 2009Member Level: Diamond   Points : 0
    hi Mam

    Good work

    thanks
    Jayakumar


    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Sign In to add tags.
    JavaScript for blinking text  .  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

    About Us    Contact Us    Privacy Policy    Terms Of Use