Easy stupid button question

liunx

Guest
<input type="button" value="bla bla bla"> <br />
<br />
how do you make this link to something. <a href=http://www.webdeveloper.com/forum/archive/index.php/"bla bla bla"><br />
<br />
and how do you change the buttons color and the texts' color???<!--content-->what do you mean how do you make this link to something? How do you make the button redirect somewhere? you can change the botton color and border etc with css<br />
style="border:1px solid #000000; color:#ffffff; background-color:#cccccc;"<!--content-->yea I didn't explain it very good did I. lol. Well I kinda figured it out. I got it to work anyway but the code doesn't look like i would want it to. anyway here it is.<br />
<br />
<form action="trans2.html"><input type="submit" value="Transition"></form><br />
<br />
I was trying to get the button to work like this<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"trans2.html"><img src="home.gif" borders="0"><br />
<br />
but it didn't work like that.<br />
<br />
um how would I add the color stuff you just said into the working script above.. i'm sorta new to java dhtml and css I'm used to doing really basic html. Thus my problems with buttons. sigh<!--content-->Nvm the color stuff was easy I just stuck it in thanks.<br />
<br />
<form action="trans2.html"><input type="submit" value="Transition" style="color:white; background-color:black;"></form><br />
<br />
Still the scripit for a html button link is diffrent than I woulda thought. I figured it would look alot like the image does. lol<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"trans2.html"><input="button" value="Transition"> I though it would look like that.. oh well if theres a diff way to do buttons someone tell me please<!--content-->What you've got there is quite a hack but other solutions will require Javascript be enabled on the browser. In that case you can use an onclick handler to do your location change.<!--content-->Yea i'm working on java too. lol<br />
<br />
Heres the link so you all can see what I was trying to do.<br />
<br />
<!-- m --><a class="postlink" href="http://batlecruiser.tripod.com/trans1.html">http://batlecruiser.tripod.com/trans1.html</a><!-- m --> <br />
<br />
lol<br />
<br />
WHAT do you mean by hack??<!--content-->From the Jargon Dictionary:<br />
<br />
hack [very common] 1. n. Originally, a quick job that produces what is needed, but not well.<!--content-->ahh that describes it very well.. could you tell me where to get the jargon dic.<!--content-->Sounds to me like what you want is an image link to another page. The button created by your code is not intended for that. It is intended to call a script that will process some info that has already been entered into a form (<input> is the clue here).<br />
<br />
What you need is an image of a button with the word 'Transition' on it. If you need the button to act as if it is moving when clicked on, you need a rollover image. Ask for some help in the Graphics forum if you can't make the images yourself. I'm sure someone there would help you out.<!--content-->I know that ... if you went there and clicked the dum button you would see an image link.... I just didn't want to use a image when I can make a button with html. Anyway I got it to work. May not be VALID.. but i'm not good enough to worry about that now anyway.<!--content-->However... when you go over an image link it changes the pointer to show a hyper link... how would I make the pointer to change on my html button??<!--content-->Originally posted by kal'lar <br />
Yea i'm working on java too. javascript and java are two completely different things. Please say javascript when you mean javascript because it can get confusing from time to time.<!--content-->Originally posted by kal'lar <br />
ahh that describes it very well.. could you tell me where to get the jargon dic. <br />
<!-- m --><a class="postlink" href="http://www.jargon.org">http://www.jargon.org</a><!-- m --><!--content-->
 
Back
Top