Wednesday 21 September 2011

Please help me!!! An html/asp program ---?

how can i write an asp/html program that does following:



When we roll over our mouse over the text %26quot;Roll your mouse over my text%26quot;, it should change to %26quot;Wow that feels good!!!%26quot; with font color red.

Please help me. i'd be very thankful if the program'll not use javascript and if the program need javascript in any way, then only give my ur program in javascript or any other script. thank you
Please help me!!! An html/asp program ---?
You will have to use html and javascript for this....

%26lt;script%26gt;

function mouseout()

{

document.getElementById(%26quot;txtchange%26quot;)

.innerHTML=

%26quot;Roll your mouse over my text%26quot;

document.getElementById(%26quot;txtchange%26quot;)

.style.color = %26quot;Black%26quot;;

}

function mouseover()

{

document.getElementById(%26quot;txtchange%26quot;)

.innerHTML=

%26quot;Wow that feels good!!!%26quot;

document.getElementById(%26quot;txtchange%26quot;)

.style.color = %26quot;Red%26quot;;

}

%26lt;/script%26gt;



%26lt;body%26gt;

%26lt;div

onmouseover=%26quot;mouseover();%26quot;

onmouseout=%26quot;mouseout();%26quot;

id=%26quot;txtchange%26quot;

%26gt;

Roll your mouse over my text

%26lt;/div%26gt;

%26lt;/body%26gt;

i have not tested but should work for the most part

another way of doing it would be

%26lt;script%26gt;

function mouseout(obj)

{

obj.innerHTML = %26quot;Roll your mouse over my text%26quot;

obj.style.color = %26quot;Black%26quot;;

}

function mouseover(obj)

{

obj.innerHTML = %26quot;Wow that feels good!!!%26quot;

obj.style.color = %26quot;Red%26quot;;

}

%26lt;/script%26gt;



%26lt;body%26gt;

%26lt;div

onmouseover=%26quot;mouseover(this);%26quot;

onmouseout=%26quot;mouseout(this);%26quot;

id=%26quot;txtchange%26quot;

%26gt;

Roll your mouse over my text

%26lt;/div%26gt;

%26lt;/body%26gt;

this is probably the perfered way that i would do it case then i could use it on more than one object
Please help me!!! An html/asp program ---?
onMouseOver() and onMouseOut(). Use them to call the functions you use to change the text. (It's all Javascript.)