CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2012

    Replace a button with an image


    I want to replace my button with an image when moving the mouse over it . My code for creating button is given below.
    <button type="button"tabindex="1"id="btn"onmouseover="ShowImage(this)"onmouseout="showButton(this)">Transparent Button</button>

    I want to display an image "flwr.bmp" when mouseover the button. I am a beginner in JavaScript. Please help me.


  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002

    Re: Replace a button with an image

    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Sep 2012

    Re: Replace a button with an image

    ok.. Thank You..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.