By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,871 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Onmouseover

P: 27
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, 78 views)
Jun 12 '13 #1

✓ answered by Dormilich

like this.

Share this Question
Share on Google+
6 Replies


Dormilich
Expert Mod 5K+
P: 8,639
if the hand pointer should appear over the whole <div>, just use CSS, no JavaScript required.
Jun 12 '13 #2

P: 27
Give me an example please
Jun 12 '13 #3

Dormilich
Expert Mod 5K+
P: 8,639
an example of what?
Jun 12 '13 #4

P: 27
how will i use CSS in the code behind of the above code
Jun 12 '13 #5

Dormilich
Expert Mod 5K+
P: 8,639
like this.
Jun 12 '13 #6

P: 27
I done it by putting it ,,STYLE=""cursor: hand""
Jun 12 '13 #7

Post your reply

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