I have image1 and Image_over
When user goes over image1 it should change image1 to image_over.
When user clicks on image it will clear all fields in form.
How to do without button and JavaScript? Need help
I have image1 and Image_over
When user goes over image1 it should change image1 to image_over.
When user clicks on image it will clear all fields in form.
How to do without button and JavaScript? Need help
Without Javascript? Not possible. With Javascript, you can use a form's .reset() method.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Pleas etell me whole code with Javascript. I will do but I need without button. My images (over image and base)
That ought to work nicely, as well as providing a non-JS alternative.HTML Code:<img src="image_base.png" onmouseover="this.src = 'image_over.png';" onmouseout="this.src = 'image_base.png';" style="display: none;" onclick="this.form.reset();" id="resetImage"/> <input type="reset" value="Clear" id="resetButton"/> <script type="text/javascript"> document.getElementById("resetButton").style.display = "none"; document.getElementById("resetImage").style.display = "inline"; </script>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks