Click to See Complete Forum and Search --> : Button
buffal
October 13th, 2005, 01:13 AM
I guess this is not mostly about scripting but you can tell me about how a web button is created ? I mean user created button. I think I know what buttons and colors are going to fit the eyes of visitors. I am going to make an old colorful "hybrid" button. This is true.
Thanks for reading and explanation.
PeejAvery
October 13th, 2005, 01:46 AM
I guess I don't fully understand your problem. A "web button" would be an input button with an onclick command.
<input type="button" value="Click here" name="btnclickhere" onclick="callfunction()">
You may put any JavaScript built in function in the onclick value.
Does this answer your question? If not, please explain better.
buffal
October 13th, 2005, 04:56 AM
Thank you peejavery,
But that code will produce a button made by system whereas I would like to make a button in any shapes whenever i like.
Could you tell me how to do that ?
Regards,
Dr. Script
October 13th, 2005, 06:47 AM
Why not try and use an image. Onmousedown, you could change the sides of it to make it appear to be clicked, and return it onmouseup to its original. You can use onclick to perform some code ...
buffal
October 13th, 2005, 07:32 AM
Thank you , I forgot that point.
Regards.
PeejAvery
October 13th, 2005, 09:36 AM
Don't forget your other events for making the button more attractive. But don't do too much to slow down efficiency with lots of images.
Attribute The event occurs when...
onabort - Loading of an image is interrupted
onblur - An element loses focus
onchange - The content of a field changes
onclick - Mouse clicks an object
ondblclick - Mouse double-clicks an object
onerror - An error occurs when loading a document or an image
onfocus - An element gets focus
onkeydown - A keyboard key is pressed
onkeypress - A keyboard key is pressed or held down
onkeyup - A keyboard key is released
onload - A page or an image is finished loading
onmousedown - A mouse button is pressed
onmousemove - The mouse is moved
onmouseout - The mouse is moved off an element
onmouseover - The mouse is moved over an element
onmouseup - A mouse button is released
onreset - The reset button is clicked
onresize - A window or frame is resized
onselect - Text is selected
onsubmit - The submit button is clicked
onunload - The user exits the page
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.