Quote:
|
Originally Posted by James Peet
I am trying to use CSS to allow me some control creating and using my own buttons. I have the buttons but I can't use them because I can't figure out how/where to put any code to get this button to send me to a site. I have used the <A http:\\ etc></A> code on other HTML but CSS has more options. I am trying to figure out how to make this work.<br />
<br />
<form name="groovyform"><br />
<input<br />
type="button"<br />
name="groovybtn1"<br />
class="groovybutton"<br />
value="Page One"<br />
title=""<br />
onMouseOver="goLite(this.form.name,this.name)"<br />
onMouseOut="goDim(this.form.name,this.name)"><br />
<br />
</form>
|
Just because you have access to CSS doesn't mean you should abandon structural code like the anchor tag (
a).
As for your code, Aerospace provided the solution. If you want to know what that specific snippet does, I can't tell you without you showing what the
goLite and
goDim functions are. For that button,
onmouseover the function
goLite is sent two parameters: the form name (
groovyform) and the element name (
groovybtn1). The same thing happens for the function
goDim onmouseout. It can be assumed that the functions will act on the form and button name information in some way.