inherit
143665
wildgoosespeeder wildgoosespeeder wildgoosespeeder
0
Jun 14, 2018 5:59:55 GMT -8
wildgoosespeeder
ProBoards V5 be trippin'. I'm disoriented. :P
4,393
August 2009
wildgoosespeeder
|
Post by wildgoosespeeder on Aug 16, 2010 14:51:55 GMT -8
This code changes the behavior of of the default posting form to have a prompt box appear for the URL. Browser Issues (not ProBoards, probably the browser):Opera: Doesn't insert anything. Safari: When selecting text, unselects the text selected. Since each browser is different, each prompt box will be different. Just copy and paste this into the address box and press enter to see what this prompt box will look like: javascript:var%20x=prompt("Enter the URL to put into the URL tag ([url=?][/url]) and press OK. To just insert [url][/url], click OK only.","http://");void(0);
Global Footer<script language="javascript"> /*Change URL Button to Have URL Prompt Box by wildgoosespeeder*/ var a = document.getElementsByTagName("a"); for(loop = 0; loop < a.length; loop++) { if(a[loop].href == "javascript:add(\"[a href="\",\""]\",\"[/a]\")" || a[loop].href == "javascript:add(%22[a href="%22,%22"]%22,%22[/a]%22)") { a[loop].href = "javascript:urlPopUpBox()"; break; } } function urlPopUpBox() { urlPrompt = prompt("Enter the URL to put into the URL tag ([url=?][/url]) and press OK. To just insert [a href=""][/a], click OK only.","http://"); if(urlPrompt == "http://") { add("[a href="",""]","[/a]"); } else if(urlPrompt != null) { add("[url=","[/url]",urlPrompt); } } </script>
|
|