Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Bart #1
mouseover effect
I want to create a mouseover effect which colors the row when the
mousepointer goes over a row. I use this code in the itemDataBound event
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onMouseOver",
"this.style.backgroundColor='Silver'")
e.Item.Attributes.Add("onmouseout",
"this.style.backgroundColor='white'")
e.Item.Style("cursor") = "hand"
End If
The code works fine. But when I attach a stylesheet (css) to the page, the
mouseover won't work anymore. It seems that the stylesheet 'overrules' all
other attributes. Any idea how to solve this ?
Bart
Bart Guest
-
Spry detail region effect on mouseOver?
I've built a page using the conventional Spry detail region method (URL below if you're interested). BUT instead of having the detail region change... -
Mouseover for Images in DW8
I use the mouseover feature of DW8 on an XP Pro platform to create mouseovers of thumbnails that change a larger image on the page to an... -
mouseOver not rollOver
On Flash 5, I want to go to the previous frame when the pointer is over the button. With rollover, it goes one frame at a time as I have to roll... -
mouseOver?
Hi I would like a movieclip to move when I the mouse is over (just a couple of pixels) and then move back again when the mouse is moved away. I... -
MouseOver effect?
Hi, Is the mouseover effect created on http://www.phpfreaks.com/tutorial_index.php (mouseover the tutorial descriptions) possible to do using... -
R. Thomas, aka Xtreme.Net #2
RE: mouseover effect
Hi bart all my pages have stylesheets attached to it, but my color change
still works. Style sheet does not cause any problems. Maybe you are
overlooking something else?
HTHs...
"Bart" wrote:
> I want to create a mouseover effect which colors the row when the
> mousepointer goes over a row. I use this code in the itemDataBound event
>
> If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
> ListItemType.AlternatingItem Then
> e.Item.Attributes.Add("onMouseOver",
> "this.style.backgroundColor='Silver'")
> e.Item.Attributes.Add("onmouseout",
> "this.style.backgroundColor='white'")
> e.Item.Style("cursor") = "hand"
> End If
>
> The code works fine. But when I attach a stylesheet (css) to the page, the
> mouseover won't work anymore. It seems that the stylesheet 'overrules' all
> other attributes. Any idea how to solve this ?
>
> BartR. Thomas, aka Xtreme.Net Guest



Reply With Quote

