Onmouseover

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqar100
    New Member
    • Jun 2010
    • 27

    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.

    Code:
    strHeaderCaption = "<div onmouseup=""igtbl_headerClickUp2(event,'ReportGrid1xgrdReport');"" style='width:" &
                               (headerItem.Column.Width.Value - 3).ToString &
                               "px;overflow:hidden;text-overflow:ellipsis;'><nobr>" & headerItem.Column.Header.Caption &
                               "</nobr>"
    
    
    .....
     strHeaderCaption = strHeaderCaption & "</div>"
    it create the script as


    Code:
    <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:


    Code:
    <div onmouseup="igtbl_headerClickUp2(event,'ReportGrid1xgrdReport');"onmouserover="M1();" style='width:97px;overflow:hidden;text-overflow:ellipsis;'><nobr>Department</nobr></div>
    
    function M1() {
    ' alert('Do Something');
    }
    It is giving me the alert,hi i would adjust for the hand image onmouseover?
    Attached Files
    Last edited by gits; Jun 13 '13, 12:36 PM. Reason: added code tags
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    if the hand pointer should appear over the whole <div>, just use CSS, no JavaScript required.

    Comment

    • waqar100
      New Member
      • Jun 2010
      • 27

      #3
      Give me an example please

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        an example of what?

        Comment

        • waqar100
          New Member
          • Jun 2010
          • 27

          #5
          how will i use CSS in the code behind of the above code

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            like this.

            Comment

            • waqar100
              New Member
              • Jun 2010
              • 27

              #7
              I done it by putting it ,,STYLE=""curso r: hand""

              Comment

              Working...