Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    naughty frames and pop ups ;p

    My site (gulp) uses 2 frames, one for left navigation, one for content.

    http://www.angelfire.com/id/devilman/index.html

    If you click on MUSIC in the left frame, a section comes up where you can click on song names and a pop up window appears with the song lyrics.

    However, once this has been done (whether or not lyric window is closed), clicking on any of the links in the left frame starts opening them into a new window rather than the right frame!!!!! This ONLY happens once a lyric has been viewed...

    Can anyone help explain/fix this? Thanks!!!! )

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Western US
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could try adding a base target in the navigation page.

    <base target="content">
    I see that there is already a target on the links, but it is like the browser get's confused. Another reference probably would not hurt. I don't see any other reason that it should act that way unless it has to do with the script that is catching the right mouse-click in the lyrics window, but that is just an onBlur, so I don't think it would be.

    ShriekForth

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks, but i added that and no change (

    another page on my site GALLERY uses a different script, and no problems are experienced there...

    can u maybe see a reason in the way that the scripts differ?

    G

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Western US
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, I see it. Your function

    openLyric( url) {
    this.window.name = "main" renames the window
    window.open( url, "window", "'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=350,height=4 00'");

    }

    it renames the window, and when it can't find "content" anymore, as it is now called "main", it opens in a new window. So comment it out, or delete it.

    ShriekForth


  •  

    Posting Permissions

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