Results 1 to 3 of 3

Thread: Problem with DHTML Modal window v1.1 +5$

  1. #1
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Problem with DHTML Modal window v1.1 +5$

    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
    Code:
    <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
    Last edited by trancepunisher; 05-19-2010 at 10:08 AM.

  2. #2
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Update

  3. #3
    Join Date
    Apr 2010
    Posts
    89
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •