Mobius1
Customer
Greetings,
Due to popular demand on my board, I added an 'Add Image URL' and 'Quote' button into the editor toolbar of the shoutbox.
My javascript knowledge is rusty but I've added the script for generating the prompt box to add the image url but I can't remember how to get it to add the url to the shoutbox once the user selects 'OK'.
How is this done?
headerinclude
dbtech_vbshout_shoutbox_editortools
Due to popular demand on my board, I added an 'Add Image URL' and 'Quote' button into the editor toolbar of the shoutbox.
![unledihk.png](/proxy.php?image=http%3A%2F%2Fimg194.imageshack.us%2Fimg194%2F904%2Funledihk.png&hash=c3b4fb546870dbf3c5ff6d5317ca8f07)
My javascript knowledge is rusty but I've added the script for generating the prompt box to add the image url but I can't remember how to get it to add the url to the shoutbox once the user selects 'OK'.
How is this done?
headerinclude
Code:
<script type="text/javascript">
function show_prompt()
{
var name=prompt("Image URL");
if (name!=null && name!="")
{
document.write("[img]" + name + "[/img]");
}
}
</script
dbtech_vbshout_shoutbox_editortools
HTML:
<li><input type="image" src="{vb:stylevar imgdir_editor}/insertimage.png" onclick="return show_prompt()"/></li>
Last edited: