JavaScript Replace a button with an image
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Replace a button with an image

  1. #1
    Join Date
    Sep 2012
    Posts
    6

    Replace a button with an image

    Hi,

    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.

    Thanks..

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

    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
    Posts
    6

    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

This is a CodeGuru survey question.


Featured


HTML5 Development Center