Submit's Bottom., Under the page. |
Submit's Bottom., Under the page. |
![]()
Post
#1
|
|
nata,, ![]() ![]() Group: Member Posts: 12 Joined: Apr 2005 Member No: 122,989 ![]() |
Well, the problem of mine is,
usually after you finish write the comment, you have to click the a Submit's button, (under the page) I want to know how to change that to picture I want? thank for help me! [= |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 122 Joined: Feb 2005 Member No: 106,057 ![]() |
this should work:
instructions are below CODE <script language="JavaScript" type="text/javascript">
<!-- /* xanga: image replace buttons by threepointone (e-mail:spam@servesam.com) http://www.servesam.com/xanga * you may use this freely for any non-commercial use all rights not hereby granted are reserved script first posted at createblog.com */ /* INSTALLATION This script should be placed in the "footer" (website stats) section. Then, modify the following as you desire and paste it ABOVE this script: <form style="display:none" onSubmit="return false"> <input type="image" id="cloneImageBtn" name="btnSubmit" src="http://www.nowhere.com/yourimagehere.gif" style="display:none;" /> <!-- change ONLY the src attribute above. You may also edit the style attribute to your liking, but DO NOT change display:none. --> </form> */ /* Remove this if you see necessary ----DOCUMENTATION-------------------------------------------- PURPOSE Replaces default comments submit button with a user- defined image submit button REQUIREMENTS AND CONDITIONS FOR OPERATION * Should work on all modern browsers * Changes on Xanga may break this script, as usual * Must be on comments or guestbook page (technically, any page with id=btnSubmit) QUIRKS * None known. THEORY OF OPERATION Simple--script finds the submit button element, and replaces it with a clone of the user-specified image submit button */ function $$() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements; } if ($$("btnSubmit") != null) { var clonedImageBtn = $$("cloneImageBtn").cloneNode(false) clonedImageBtn.id = "btnSubmit" clonedImageBtn.name = $$("btnSubmit").name clonedImageBtn.onclick = $$("btnSubmit").onclick clonedImageBtn.style.display = "" $$("btnSubmit").parentNode.replaceChild(clonedImageBtn, $$("btnSubmit")) } --> </script> |
|
|
![]() ![]() |