warning system

Forum
Last Post
Threads / Messages

aroymart

Member
Member
Joined
Jan 10, 2009
Messages
74
Points
0
Mysidian Dollar
4,272
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=confirm'>
change it to <a onclick='kill()'>
 
How can i read your warning script?
I wouldn't understand what you written here.
Can you explain it?
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,267
Messages
33,048
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top