|
Post by MonsterControl on Jan 19, 2012 22:01:11 GMT -4
<script type="text/javascript"> <!-- /* image and URL prompt boxes by ross - 101 Support */ if(document.postForm) { function url() { var a=window.prompt('What URL do you want to link to?',''); var b=window.prompt('What text should be clickable?',''); add('\[url\='+a+'\]'+b+'\[\/url\]'); } function image() { var a=window.prompt('What is the URL of the image you would like displayed?',''); add('\[img\]'+a+'[\/img\]'); } var a=document.getElementsByTagName("a"); for(e=0;e<a.length;e++) if(a[e].href=='javascript:add("\[url\]","\[\/url\]")') { a[e].href='javascript:url()'; a[e+1].href='javascript:image()'; } } //--> </script>
|
|