Right, I was looking at it. What happens is, since it's a form, it thinks we are submitting the form. The default behavior of a button on a form is sometimes to submit it. We can return false after we call the upload function from the button, that will prevent the form from submitting as long as there isn't any other javascript governing this. It doesn't look like there is, which means it's worth a try.
We can go back to using these styles:
Code:
<style type="text/css">
a[href="javascript:postimage_upload(0);"]{
display: none;
}
div.message div span, div.message div br {
display: none;
}
</style>
and the button and the script. Just see/use the addition (red) to the button code:
Code:
<button onclick="postimage_upload(0); return false;">Image</button>
<script type="text/javascript" src="http://mod.postimage.org/website-english-family.js" charset="utf-8"></script>
Bookmarks