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
Subscribe to:
Post Comments (Atom)
Subscribe via email
MSDotnetMentor
MSDotnetMentor
My Website
http://msdotnetmentor.com
Author
Blog Archive
- 
        ▼ 
      
2009
(53)
- 
        ▼ 
      
March
(14)
- Silverlight 3- Beta - released
 - Creating Calender Using Java Script
 - Blinking Text Using JavaScript
 - Use a session variable in the class files in c# AS...
 - ASP page with database handling
 - Keycodes at a glance
 - JavaScript String Replace All
 - Type Text in Upper Case using CSS
 - No scrollbar on HTML web pages - JavaScript code
 - Transparent or Hide Scrollbar
 - disable scroll bar
 - Show or Hide combobox at Runtime using JavaScript
 - Sending Email Through ASP.NET using C#
 - Overview of ASP.Net Framework
 
 
 - 
        ▼ 
      
March
(14)
 
No comments:
Post a Comment