Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
Sorry for the late reply, works perfect, thanks!
Very good, it's a shame that when a user submits an image
the 'warning' dialogue still appears, so a new user may end
up confused & click the wrong option, but it's still very handy.
w00t thx that works
(also edited notebbs.php for paintbbs with palette thing)
thank you so much now I hope I'll not lose any more pictures by closing the window or clicking on links by accident D:
It should be added only to the applet screen, which means being put directly into "chibipaint.php", "paintBBS.php", and "shiBBS.php". It would be inserted as follows:
<link rel="stylesheet" type="text/css" href="<?=$cssinclude?>" title="<?=$template_name?>" /> <script type="text/javascript" src="Poteto.js"> </script> <script type="text/javascript"> function goodbye(e) { if(!e) e = window.event; //e.stopPropagation works in Firefox. if (e.stopPropagation) { e.stopPropagation(); e.preventDefault(); } else { //e.cancelBubble is supported by IE - this will kill the bubbling process. e.cancelBubble = true; e.returnValue = 'Are you sure you want to leave?'; //This is displayed on the dialog } } window.onbeforeunload=goodbye; </script> </head>
where exactly would one add the code?
It's okay just take you time :3
I was just curious because I don't want to lose all the pictures and members.
So then I'm looking forward to the new version
@Trunksi
Yes, but the new board is quite a while off in the future... a year at least. I haven't done much coding, lately.
woot sounds great *clap*
will this be implented in the future versions?
(since I don't know which files to edit with this code and I don't want to destroy everything ><)
oh btw OffTopic @Waccoon
I read you're planning a completly new version of an oekaki board thingy
will we be able to update wacintaki to this new version?
Oh, very good! I never knew there was a way to stop the unload event.
Alt + R (refresh)
F5 (refresh)
backspace (when clicked on the web page and not the applet, this is go back)
Mouse...4 (generally intercepted as back)
Back button
Closing the window
Those are about all I can think of, all of which should have a warning -- something like "You are about to navigate away from the page, are you sure you want to do this? Yes/no"
Something like this should work (http://www.openjs.com/scripts/events/ex … mation.php)
function goodbye(e) { if(!e) e = window.event; //e.cancelBubble is supported by IE - this will kill the bubbling process. e.cancelBubble = true; e.returnValue = 'You sure you want to leave?'; //This is displayed on the dialog //e.stopPropagation works in Firefox. if (e.stopPropagation) { e.stopPropagation(); e.preventDefault(); } } window.onbeforeunload=goodbye;