Web Design Help
It's free to register, to post a question or to start / join a discussion
How to Make a Button
Likes # 0
Posted August 16, 2013 at 9:31PM
I want to know how to make a button using javascript for my website. Something like the start button, but I want it to have these features;I want it to be like a push down button. ie: When you click on it it looks like you pressed it;and if the size can be changed I would like it to be height="30" width="60".
Likes # 0
Posted August 16, 2013 at 11:25PM
There are all sorts of ways to make buttons.
You can have two images (initial button and the clicked button) and simply use "onClick" code to swap the images. You can do the same thing with javascript.
Or you can style the whole thing in css.
Here's some examples.
You can also use one of the many automatic on-line generators to create a css button for you complete with the required code, like this one here.
Check out PC Advisor's other tech forums
Top 5 Most Popular
-
iPhone 5S vs BlackBerry Z10 smartphone comparison review - how does BlackBerry Z10 compare to latest iPhone?
-
Nexus 5 release date, price, photos and specs rumours
-
GTA 5 release date in UK: Brand new GTA 5 Map, midnight launch store locator and online gameplay video and screenshots
-
iPhone 5S vs Galaxy Note 3 smartphone comparison review - how does Apple's latest iPhone compare to the Galaxy Note 3?
-
HTC One vs iPhone 5 comparison review



