View Full Version : Agree Disagree image code??


digidcforumail
03-11-2004, 09:58 PM
Hey Everyone,

How are you all? I'm fine. Just having a difficult time finding an agree disagree code. :help:What I'm wanting is when a visitor clicks on my enter picture, I want an alert to pop up stating some rules and such. Then if they agree they can click agree, enter, or continue to enter my site index. If they disagree then they click on cancle, exit, close window or something along those lines. I've searched all kinds of java/dhtml/ and html site looking for the right script. I've had no luck at all. So I decided to ask the forum and see if anyone knows where I could possibly find the script I'm searching for. Any help is greatly appricitated. Thank you all for your time. Have a great day.

-Malea:ateddy:

pb&j
03-12-2004, 02:21 AM
try something like this in the HEAD area of the page they are about to enter...

<script type="text/javascript">
<!--
var answer = confirm ("Please click on OK to continue loading my page, or CANCEL to be directed to the Yahoo site.")
if (!answer)
window.location="http://www.google.com/"
// -->
</script>

clicking on OK will continue loading the current page.
clicking on CANCEL will load up the specified URL.

digidcforumail
03-15-2004, 06:52 PM
Eh sorta what I'm looking for, but not quite right yet. I want to beable to customize the message. And I'd be cool if the code poped-up when a person clicks on my enter picture. This is getting much closer to what I'm looking for tho. Any other ideas?? -Malea:cloud:

kittycat
03-15-2004, 07:15 PM
Maybe you could put the code on the page after the enter picture? Unless that's what you've already tried....

As for customizing the message, you just change the part "Please click...", if that's the message you're talking about.

digidcforumail
03-21-2004, 12:59 AM
I tried to customize the message, but then it didn't work. :?-Malea

kittycat
03-21-2004, 02:14 AM
Could you post the code you had after editing the message?