Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > mouseover to change button color

Reply
Thread Tools

mouseover to change button color

 
 
slinky
Guest
Posts: n/a
 
      07-13-2007
Does anyone know how I can get the following code finished. I'm trying
to dreate a onmouseover event to change the color of a button. Here's
my .vb: ( I included other code for the button that is for the
on click event)
__________________________________________________ _______________________________________
Protected Sub Button1_OnMouseOver()(ByVal sender As Object, ByVal
e As System.EventArgs) Handles
Button1_OnMouseOver ???????????????????????? Change
color ???????????????????

Protected Sub Button11_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button11.Click
Response.Redirect("http://something.com/something.htm")
End Sub
__________________________________________________ _______________________________________

 
Reply With Quote
 
 
 
 
nahid
Guest
Posts: n/a
 
      07-13-2007
On Jul 13, 8:11 pm, slinky <(E-Mail Removed)> wrote:
> Does anyone know how I can get the following code finished. I'm trying
> to dreate a onmouseover event to change the color of a button. Here's
> my .vb: ( I included other code for the button that is for the
> on click event)
> __________________________________________________ _________________________*______________
> Protected Sub Button1_OnMouseOver()(ByVal sender As Object, ByVal
> e As System.EventArgs) Handles
> Button1_OnMouseOver ???????????????????????? Change
> color ???????????????????
>
> Protected Sub Button11_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles Button11.Click
> Response.Redirect("http://something.com/something.htm")
> End Sub
> __________________________________________________ _________________________*______________


hi,
try to use java script for this

<html>
<head>
<script type="text/javascript">
function mouseOver()
{
document.b1.src ="b_blue.gif"
}
function mouseOut()
{
document.b1.src ="b_pink.gif"
}
</script>
</head><body>
<asp:Button onmouseover="mouseOver()" onmouseout="mouseOut()">

</body>
</html>

hope help


nahid
http://nahidulkibria.blogspot.com/
http://www.kaz.com.bd

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
Changing alternate row color on mouseover raoof ahmed khan ASP .Net 1 05-14-2008 08:53 AM
mouseover change image and text color. Amy Javascript 2 05-20-2006 09:27 AM
Change foreground/layer color on AREA mouseover?? spamforsteve@hotmail.com Javascript 2 01-08-2006 04:40 AM
TD border color on mouseover Carl Gilbert HTML 1 07-18-2005 10:12 PM



Advertisments