...

View Full Version : naughty frames and pop ups ;p



dysfunctionGazz
08-23-2002, 05:08 PM
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!!!! :o)

ShriekForth
08-23-2002, 05:31 PM
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

dysfunctionGazz
08-23-2002, 06:13 PM
thanks, but i added that and no change :o(

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

ShriekForth
08-23-2002, 07:07 PM
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=40 0'");

}

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum