Js button and background picture implementation method

  • 2020-03-30 04:15:43
  • OfStack

The example of this article describes the js button and background picture method. Share with you for your reference. The specific implementation method is as follows:

Method one:

<input type="submit" onMouseOver="style=background:url('imgs/jb51.gif')"/>

 
Method 2:
<input type="button" value=" submit " style="background:url( Picture address ) no-repeat;border:none;text-indent:-2000px;width:100px;height:30px;">

 
Method 3:
Just use the picture button, that is:
<input name="submit" type="image" value=" " src="jb51.jpg" />


Related articles: