Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: DHTML pop-up window script

  1. #11
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Nope!!! now this is what the published page looks like:


    <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>contact us</title> <link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" /> <script type="text/javascript" src="windowfiles/dhtmlwindow.js"> /*********************************************** * DHTML Window Widget- © Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for legal use. * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> </head> <body> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="750"> <tr> <td width="350"></td> <td width="350"></td> </tr> <tr> <td width="350"></td> <td width="350"> <a href="#" onClick="ajaxwin=dhtmlwindow.open('contactus', 'contact', info_page.htm', 'Contact Us', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false">Contact Us</a> </tr> </table> </center> </div> </body> </html>

  2. #12
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Ok, instead of using Frontpage, try using Notepad and copy the code I posted in my previous post. Or; in Frontpage, use the Source Code view instead of design view.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #13
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the tip of posting to notepad first, saves me a lot of converting.

    BUT the pop up window isn't opening

  4. #14
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here's some boiler plate on FP that may help:

    Well, you might be able to configure FP so as to allow you to insert code like this without it mangling it so much. Read the manual or Google for help on that. Another alternative, and what I recommend in all cases like this, is to get your page looking like you want using FP but without any scripts. Save a copy of that somewhere to work on later if the need arises. Next open the page in notepad or simple text and add the scripts in according to the installation instructions, including any customization you've added. Never load this version of the page into FP ever again. To preview it locally, use the browser. To upload it, use FTP (preferred) or your host's online uploading tool.

    Here is trick I ran across* that should stop FP from changing scripts but, since I do not use FP, I haven't tested it:

    In a text editor open the page whose code you wish to preserve.

    At the beginning of the section of code you wish to prevent FrontPage from modifying, add the following line of code:

    Code:
    <!--webbot bot="HTMLMarkup" startspan --> 
    At the end of the code section, add the following line of code:

    Code:
    <!--webbot bot="HTMLMarkup" endspan --> 
    Save the changes to the file. The next time the file is opened in FrontPage, FrontPage will not attempt to alter the code between the two HTMLMarkup tags. You still need to put the script into the page with a text editor.

    *Posted in these forums by usace-lrc and perhaps others.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #15
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by egghead2000 View Post
    Thanks for the tip of posting to notepad first, saves me a lot of converting.

    BUT the pop up window isn't opening
    Are you sure that you downloaded the files from dd? You need to download the css file, js file, as well as the images that correspond to the windows (unless you make your own images). Anyways; after doing that and it still doesn't work, post a link to your test page and we will check it out to see what is going on with it.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #16
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    No, I just copy/paste your code.

  7. #17
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    In that case, download this file:

    http://www.dynamicdrive.com/dynamici...htmlwindow.zip

    and upload the extracted files to your server. From there, look at demo.htm for a more in-depth look at how to get this script working on your site.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  8. #18
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Here is a link to my test page:

    http://www.computingservicesok.com/contact_us.htm

  9. #19
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Well, looking at the test page, the syntax is correct to get the script working as long as you download the following files and place them in a new folder called "windowfiles" (without the quotes).

    windowfiles/dhtmlwindow.css
    windowfiles/dhtmlwindow.js
    windowfiles/close.gif
    windowfiles/min.gif
    windowfiles/resize.gif
    windowfiles/restore.gif

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #20
    Join Date
    Jun 2007
    Location
    North Lake Tahoe
    Posts
    62
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thank you VERY MUCH

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
  •