1) Script Title:
DHTML Modal window v1.1
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
3) Describe problem:
I will send by paypal 5$ to first guy who solve this simple problem.
when the agreement window popup Im not able to click on yes or no, I mean i can click but it wont close the window.
example of this problem you can find here: http://www.adultimagehost.info/show....gimg1.jpg.html
I have done it like this:
first i have uploaded script and unzip it. after that i have paste this code in header.html after <body>:
Code:<link rel="stylesheet" href="http://adultimagehost.info/windowfiles/dhtmlwindow.css" type="text/css" /> <script type="text/javascript"src="http://adultimagehost.info/windowfiles//dhtmlwindow.js"> </script> <link rel="stylesheet" href="http://adultimagehost.info/modalfiles/modal.css" type="text/css" /> <script type="text/javascript" src="http://adultimagehost.info/modalfiles/modal.js"></script>
after that i have paste this code in show.html
I'm not good in coding so please help meCode:<script type="text/javascript"> var agreewin=dhtmlmodal.open("agreebox", "iframe", "http://adultimagehost.info/modalfiles/agreement.htm", "This Page's Terms of service", "width=300px,height=250px,center=1,resize=1,scrolling=0", "recal") agreewin.onclose=function(){ //Define custom code to run when window is closed var theform=this.contentDoc.getElementById("eula") //Access form with id="eula" inside iframe var yesbox=theform.eulabox[0] //Access the first radio button within form var nobox=theform.eulabox[1] //Access the second radio button within form if (yesbox.checked==true) alert("You agreed to the terms") else if (nobox.checked==true) alert("You didn't agree to the terms") return true //Allow closing of window in both cases } </script>



Reply With Quote

Bookmarks