Results 1 to 6 of 6

Thread: DHTML Window widget (v1.1) only opening at top of page

  1. #1
    Join Date
    Feb 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget (v1.1) only opening at top of page

    1) Script Title: DHTML Window widget (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/

    3) Describe problem:

    I have the link to the window at the top of a static navigation scrollbar. Regardless if the user scrolls down, the navigation bar always stays at the top of the users browser.

    Here is the link being used

    <a class=\"link\" href=\"#\" onClick=\"tvwin=dhtmlwindow.open('tv', 'iframe', 'http://website.com/tv.html', '', 'width=500px,height=340px,center=1,'); return false\">Link Window</a>

    The problem is: If the user scrolls down to anywhere below the top of the page, the window no longer opens. It will open fine if the user is at the top of the page.

    Any ideas?

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,982
    Thanks
    16
    Thanked 311 Times in 309 Posts
    Blog Entries
    11

    Default

    Its difficult to visualise your setup - Please post a link to your page so we can experience the problem first hand.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Feb 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    http://www.blogher.com/frame.php?url...hebloggess.com this is it basically. Where it says "Whats Hot" is where the dthml window link (posted above) is

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,982
    Thanks
    16
    Thanked 311 Times in 309 Posts
    Blog Entries
    11

    Default

    I cant see the code you've posted in your source code;
    Code:
    <a class=\"link\" href=\"#\" onClick=\"tvwin=dhtmlwindow.open('tv', 'iframe', 'http://website.com/tv.html', '', 'width=500px,height=340px,center=1,'); return false\">Link Window</a>
    Neither can I see links to the dhtmlwindow.css or dhtmlwindow.js files.

    Is that the link to the correct page?

    Where are we supposed to be looking/clicking?
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  5. #5
    Join Date
    Feb 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    http://alturl.com/338kt

    Actually, it seems the demo even has the same issue.

    In the demo, you can see that the top portion works fine... However, if you scroll to the bottom, the window(s) no longer open.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,023
    Thanks
    44
    Thanked 3,209 Times in 3,171 Posts
    Blog Entries
    12

    Default

    In tvshoppingqueens.com/javafiles/dhtmlwindow.css around line 10, revert to absolute positioning (change highlighted):

    Code:
    .dhtmlwindow{
    position: absolute;
    border: 2px solid gray;
    visibility: hidden;
    overflow: hidden;
    background-color: white;
    *-webkit-border-radius: 15px;
    *-moz-border-radius: 15px;
    *border-radius: 15px;
    
    }
    The browser cache may need to be cleared and/or the page refreshed to see changes.
    - John
    ________________________

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

Similar Threads

  1. DHTML Window widget (v1.1) Move Window To Different Page
    By jsl2247 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 07-29-2009, 04:15 PM
  2. DHTML Window Widget: Close Window-Layer(s) While Opening Another
    By twohawks in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 10-06-2007, 07:03 PM
  3. using dhtml window widget in framed page
    By JShor in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-17-2007, 08:09 PM
  4. Need help opening DHTML Window widget into other frame
    By Joefunkx in forum Dynamic Drive scripts help
    Replies: 8
    Last Post: 06-14-2007, 07:37 PM
  5. DHTML Window Widget opening into _parent or other iframe?
    By Luterin in forum Dynamic Drive scripts help
    Replies: 12
    Last Post: 03-30-2007, 05:53 PM

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
  •