473,498 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible to have non-image based rollover buttons?

Using ASP.NET, is this possible? All I want is something simple, like
bold-facing the text.
An alternative would be to use plain text links (IE 6.0, so we can rely
on CSS and the anchor hover).

Maybe there's a 3rd party control out there that does this? Possible
to make your own? Thoughts? Thanks.

Jun 26 '06 #1
2 1140
Hi Doug,

There's lots you can do with dynamic HTML on regular buttons. You just need
to change the styles. See the sample below.

Let us know if this helps?

Ken
Microsoft MVP [ASP.NET]

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)
Button1.Attributes.Add _
("onmouseover", "this.style.fontWeight='bold'")
Button1.Attributes.Add _
("onmouseout", "style.fontWeight='normal';" & _
"this.style.backgroundColor='white'")
End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Change button</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:button id="Button1" runat="server" text="Hover over me!"
/></div>
</form>
</body>
</html>

"Doug" <sp*******@gmail.com> wrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Using ASP.NET, is this possible? All I want is something simple, like
bold-facing the text.
An alternative would be to use plain text links (IE 6.0, so we can rely
on CSS and the anchor hover).

Maybe there's a 3rd party control out there that does this? Possible
to make your own? Thoughts? Thanks.

Jun 26 '06 #2
Worked like a charm. Thanks.

Sorry it took so long to reply.

Please reply if you see this. I'm curious to see if people read these
things if there is no activity for a day or two. Or sixteen. ;-)

Jul 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
3006
by: Robert Brown | last post by:
suppose I have the following table: CREATE TABLE (int level, color varchar, length int, width int, height int) It has the following rows 1, "RED", 8, 10, 12 2, NULL, NULL, NULL, 20...
3
12185
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
2
1323
by: shlomi.schwartz | last post by:
Hi all, I'm trying to open a new non rectangular dialog window from an HTA application, is it possible? I tried using window.showModalDialog() with the unadorned feature as a starting point...
0
1419
by: Joel Foner | last post by:
I realize this sounds like a bizarre question, but... is it possible to create an MFC window as a child of a non-MFC parent? Here's the background. I'm trying to create an add-in for a product...
11
1547
by: Gene | last post by:
I want to create a certain number of arrays on the same time to use, is it possible to do that?
14
302
by: foxchan | last post by:
A Newbie question. Is it possible? Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim oNewForm As Form1 'if already create a form...
28
2603
by: beach.dk | last post by:
Hi, I'm trying to implement a simple hash algorith called rs_hash in javascript, but I cannot get a correct result. In c the code looks like this:
24
4122
by: Yevgen Muntyan | last post by:
Hey, Is it correct that number of value bits in int and unsigned int representation may be the same? If it is so, then INT_MIN may be -(INT_MAX+1) (in mathematical sense), i.e. abs(INT_MIN) is...
2
1503
by: Brian Simmons | last post by:
Hi, Long story short: I've got a website built, and we moved it over to the production server, which is an SSL-required (https://...) server. A third party component that I'm using makes use of...
1
1723
by: SteveM | last post by:
I suspect that this is either not possible or really really tricky, but need to ask. We have a great deal of work done in perl in our environment, and we are currently starting to do more work with...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.