Forum Moderators: open
<HTML>
<head>
<meta http-equiv="Content-Language" content="">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<style type="text/css">
.button {
width:170;
height:30;
background-color:transparent;
background-image:url(b1.jpg);
color:white;
font:bold italic 12 tahoma;
border:none;
cursor:hand;
}
.button_dn {
width:170;
height:30;
background-color:transparent;
background-image:url(b2.jpg);
color:white;
font:bold italic 12 tahoma;
border:none;
cursor:hand;
}
</style>
<title>Greengo's</title>
</head>
<body background="gray">
<table border="3" width="800" style="border-collapse: collapse" id="table1" bgcolor="#333333">
<tr><td><a href="abbr.htm"> <input type="button" onfocus="this.blur();" value="ABBREVIATIONS" class="button"
onMouseDown='this.className="button_dn"'
onMouseUp='this.className="button"'></a>
</td></tr>
</table>
As far as stripping it down, all I did was put the button code where i wanted it, put my label name on the button, and stuck it within a link. I thought that should work, but it doesn't. When I mouseover the button, it shows the link in the bottom bar of the window, but clicking on it does nothing. I know html fairly well, but java is a bit more esoteric for me and I haven't had any real clases on it.
<a href="abbr.htm"> <input type="button" onfocus="this.blur();" value="ABBREVIATIONS" class="button"
onMouseDown='this.className="button_dn"'
onMouseUp='this.className="button"'></a>
Use;
<input type="button" onfocus="this.blur();" value="ABBREVIATIONS" class="button"
onMouseDown='this.className="button_dn"'
onMouseUp='this.className="button"' onclick="window.location='abbr.htm';">
<input type="button" onfocus="this.blur();" value="ABBREVIATIONS" class="button"
onMouseDown='this.className="button_dn"'
onMouseUp='this.className="button"' onclick="window.location='abbr.htm';">
use
<input type="button" onfocus="this.blur();" value="ABBREVIATIONS" class="button"
onMouseDown='this.className="button_dn"'
onMouseUp='this.className="button"' onclick="document.getElementById('myFrame').location='abbr.htm';">
<tr><td><input type="button" onfocus="this.blur();" value="ABOUT US" class="button"
onMouseDown='this.className="button_dn"'
onMouseUp='this.className="button"' onclick="document.getElementById('s1').location='about.htm';">
</td></tr>
Still gives me no output.