473,320 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Onmouseover

In Code behind we have already a method which will sort the grid,when a user click on the header of the grid,as image is attached.

Expand|Select|Wrap|Line Numbers
  1. strHeaderCaption = "<div onmouseup=""igtbl_headerClickUp2(event,'ReportGrid1xgrdReport');"" style='width:" &
  2.                            (headerItem.Column.Width.Value - 3).ToString &
  3.                            "px;overflow:hidden;text-overflow:ellipsis;'><nobr>" & headerItem.Column.Header.Caption &
  4.                            "</nobr>"
  5.  
  6.  
  7. .....
  8.  strHeaderCaption = strHeaderCaption & "</div>"
it create the script as


Expand|Select|Wrap|Line Numbers
  1. <div onmouseup="igtbl_headerClickUp2(event,'ReportGrid1xgrdReport');" style='width:97px;overflow:hidden;text-overflow:ellipsis;'><nobr>Department</nobr></div>


Now I have to make a function for mouse over in which a hand is appeared for the range of click.please give me idea

--------------------------------

Updated:


Expand|Select|Wrap|Line Numbers
  1. <div onmouseup="igtbl_headerClickUp2(event,'ReportGrid1xgrdReport');"onmouserover="M1();" style='width:97px;overflow:hidden;text-overflow:ellipsis;'><nobr>Department</nobr></div>
  2.  
  3. function M1() {
  4. ' alert('Do Something');
  5. }
  6.  
It is giving me the alert,hi i would adjust for the hand image onmouseover?
Attached Images
File Type: jpg OnmouseOver.jpg (27.2 KB, 95 views)
Jun 12 '13 #1

✓ answered by Dormilich

like this.

6 1692
Dormilich
8,658 Expert Mod 8TB
if the hand pointer should appear over the whole <div>, just use CSS, no JavaScript required.
Jun 12 '13 #2
Give me an example please
Jun 12 '13 #3
Dormilich
8,658 Expert Mod 8TB
an example of what?
Jun 12 '13 #4
how will i use CSS in the code behind of the above code
Jun 12 '13 #5
Dormilich
8,658 Expert Mod 8TB
like this.
Jun 12 '13 #6
I done it by putting it ,,STYLE=""cursor: hand""
Jun 12 '13 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: laurie | last post by:
Hi. I have a DIV section that has many thumbnail images inside it. I have a DIV so all images can fit in a row and the horizontal scroll bar is used to move the thumbnails from left to right. ...
7
by: Richard | last post by:
I know I can have like <a href="#" onclick="dothis" onmouseover="dothat"> But how do you properly code two mouseover's in one statement? <a href="#" onmousever="dothis" onmouseover="dothat"> As...
7
by: windandwaves | last post by:
Hi Gurus I am trying to make this rather complicated maps with an a huge number of mouseovers and the like. I want to set up a function that OnMouseDown swaps the OnMouseOver and OnMouseOut for...
2
by: news.west.cox.net | last post by:
I have been writing a practice sliding div navigation script. I am finding myself in the position where I need to force a div into showing the hover behavior defined in css. So my question is...
3
by: drjackk | last post by:
Hello, I'm trying to change the onmouseover event dynamically. This sets-up the initial onmouseover event: <a href="home.html"> <img border="0" id="img22" src="images/home1.jpg"...
2
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
2
by: Justin Rowe | last post by:
I'm attempting to design a site with alot of dynamic content and intractability, however I've hit a snag when it comes to the function of the onMouseOver and onMouseOut events. Using a bit of code...
1
by: den2005 | last post by:
Hi everybody, I am confused and still looking why this codes is not working. Can anyone notice or know why this code is not working? Thanks in advance. Code working: <form id="form1"...
3
by: oopaevah | last post by:
I have written some dom code to create a list of divs, each with it's own id. I want to set the onmouseover and onmouseout events to highlight the div when the mouse is over it. However I cannot...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.