ghandi
06-06-2006, 01:57 AM
I would like my buttons to have a red border on hover, They are
< input type="button" ... > buttons
----
<title>Bowling Pin Button Problem</title>
<style>
<!--
input.keycap {font-size:10px; font-family:Arial,sans-serif; font-weight:bold; width:20px; height:20px;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffEEEEEE',EndColorS tr='#ff888888');
border-width:0px}
-->
</style>
</head>
<body>
<p align=center>
CSS Bowling Pin Button Problem<br>
( Can not get Hover to highlight the border )</p>
<p align=left>
Using the CSS Style for these buttons, <br> </p>
<p align=center>
<input type="button" value="6" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="7" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="8" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="9" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ><br>
<input type="button" value="4" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="5" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="6" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ><br>
<input type="button" value="2" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="3" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ><br>
<input type="button" value="1" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ></p>
<p align=center> </p><p align=left>
I would like to make the Buttons above function like the one below ( Hover with
Red border) but with CSS embedded. <br>
Not CSS inline as
shown on the Button below</p><p align=center>
<input onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='1px solid #CCCCCC'" type="image" name="Example"></p>
<p align=left>
<style><br>
<!--<br>
input.keycap {font-size:10px; font-family:Arial,sans-serif; font-weight:bold;
width:20px; height:20px;<br>
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffEEEEEE',EndColorS tr='#ff888888');<br>
border-width:0px}<br>
<br>
--><br>
</style><br>
</p>
<p align=center>
</p>
</BODY>
</HTML>
< input type="button" ... > buttons
----
<title>Bowling Pin Button Problem</title>
<style>
<!--
input.keycap {font-size:10px; font-family:Arial,sans-serif; font-weight:bold; width:20px; height:20px;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffEEEEEE',EndColorS tr='#ff888888');
border-width:0px}
-->
</style>
</head>
<body>
<p align=center>
CSS Bowling Pin Button Problem<br>
( Can not get Hover to highlight the border )</p>
<p align=left>
Using the CSS Style for these buttons, <br> </p>
<p align=center>
<input type="button" value="6" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="7" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="8" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="9" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ><br>
<input type="button" value="4" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="5" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="6" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ><br>
<input type="button" value="2" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" >
<input type="button" value="3" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ><br>
<input type="button" value="1" onclick="addChar(this.value)" class="keycap" style="width: 20; height: 20; border-left-style:outset; border-left-width:1px; border-top-style:outset; border-top-width:1px" ></p>
<p align=center> </p><p align=left>
I would like to make the Buttons above function like the one below ( Hover with
Red border) but with CSS embedded. <br>
Not CSS inline as
shown on the Button below</p><p align=center>
<input onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='1px solid #CCCCCC'" type="image" name="Example"></p>
<p align=left>
<style><br>
<!--<br>
input.keycap {font-size:10px; font-family:Arial,sans-serif; font-weight:bold;
width:20px; height:20px;<br>
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffEEEEEE',EndColorS tr='#ff888888');<br>
border-width:0px}<br>
<br>
--><br>
</style><br>
</p>
<p align=center>
</p>
</BODY>
</HTML>