PDA

View Full Version : Problem with DHTML Modal window v1.1 +5$



trancepunisher
05-18-2010, 01:52 PM
1) Script Title:
DHTML Modal window v1.1
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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.php/2_reenabillhorbigimg1.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>:




<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


<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>


I'm not good in coding so please help me

trancepunisher
05-19-2010, 10:06 AM
Update

pxlcreations
08-22-2010, 06:33 PM
Maybe this is the problem?

http://adultimagehost.info/windowfiles//dhtmlwindow.js

should be:

http://adultimagehost.info/windowfiles/dhtmlwindow.js

notice how you had an extra / in there. Try it out. No payment required.