How to Set JS Button Height
When you use JavaScript on your Web page to control the functionality of buttons, you should remember that the JavaScript code does not control the appearance of the button. This means that if you want to alter the appearance of a button that is controlled by JavaScript, you must change the accompanying HTML button settings. The JavaScript code should remain untouched.
Instructions
-
-
1
Log in to your Web server. Open the HTML page that currently includes the JavaScript button. The JavaScript code is located in the <head> section of the page. You do not need to alter this section of the page.
-
2
Locate the mention of the button in the <body> section of the page. It should appear something like this:
<a href="http://www.webpage.com" onMouseOver="return changeImage()" ><img
name="jsbutton" src="image.jpg" width="95" height="35" border="0"
alt="button"></a>
-
-
3
Delete the numerical value that follows "height" and replace it with a different number to set the height.
-
4
Publish the page.
-
1