Thread: warning system
View Single Post
  #1  
Old 09-14-2009, 08:25 PM
aroymart aroymart is offline
Member
 
Join Date: Jan 2009
Posts: 74
Credits: 6,498
aroymart
Angry warning system

ok, before you post this isn't anything like bloodruns user warning script (which looks amazing)

this is a warning script for deleting adoptables

1. put

<script type="text/javascript">
<!--
function kill() {
var answer = confirm("kill him?") //you can change whats in the " " to whatever you want
if (answer){
alert("you pressed ok") //you can change whats in " " to whatever you want
window.location = 'myadopts.php?act=kill&id=<?php echo $id ?>&more=confirm';
}
else{
alert("Thanks for not killing him!")///you can change whats in " " to whatever you want
}
}
//-->
</script>

at the bottem (after everything)


2. press ctrl-F and search for <a href='myadopts.php?act=kill&id=".$id."&more=confir m'>
change it to <a onclick='kill()'>
Reply With Quote