Click to See Complete Forum and Search --> : break out of frames.


muehlman
12-26-2002, 11:28 AM
I have a problem I can't figure out. I have a html page with this code in the head,

<script>

var windowW=214 // wide
var windowH=398 // high


var windowX = 260 // from left
var windowY = 100 // from top

// set the url of the page to show in the popup

var urlPop = "pbtv.html"

var title = "This Is A Frameless Popup Window"

// set this to true if the popup should close
// upon leaving the launching page; else, false

var autoclose = true

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","fullscreen,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}

</script>

then in the body i have a link to,

<a href="javascript:openFrameless()">press here</a>

the next html page that opens has a swf file embeded into it at 100% x 100%. it opens in a full page(no scrollers no navagation, no nothing!) I believe it is a frameset. the swf file within that page is setup to go to the next url(html page) when the movie is done. what is happening is the next page is still in the full screen mode(frameset) What I want to happen is to have the next page load within it's self (don't want a new page to load up) with the scroller and navagation. breaking out of the frames(full screen) if anyone can help that would be great!!! i need to fix this desperatly!!!!!


Muehlman

ozzga
12-26-2002, 12:11 PM
not positive i understand you fully, but what you're trying to say is you have a frames site and you want the flash anim to break out of the frames, without opening another window, right?
if so, you dont need javascript for that. just make a web page with the flash anim in it (let's say - flashpage.html). then put this in:

<A HREF="flashpage.html" TARGET="_top">click here</A>

or if you want to open another window with navigation and stuff:

<A HREF="flashpage.html" TARGET="_new">click here</A>

muehlman
12-26-2002, 12:16 PM
can you break out of the frames automatically? without using a link?

Muehlman