1.

Solve : Bare popup HTML?

Answer»

I can't seem to find the code to make this:

A pop up style window
That has no title bar or address bar
to contain an .swf with the DIMENSIONS of 800x600
but the code must be contained in the page itself, as the link to the page in in an XML document.QUOTE from: EchoLdrWolf316 on November 04, 2008, 04:41:35 PM

but the code must be contained in the page itself, as the link to the page in in an XML document.

What do you mean?

Use something like this...

Code: [Select]<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("http://www.mysite.com/popup.htm","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=800, height=600");
}
</script>
</head>

<body>
<form>
<input type="button" VALUE="Open Window" ONCLICK="open_win()">
</form>
</body>

</html>

This would be the page that opens ("popup.htm")...

Code: [Select]<html>
<head>
<title>Popup</title>
</head>

<body>
<OBJECT width="800" height="600">
<param name="movie" value="filename.swf">
<embed src="filename.swf" width="800" height="600">
</embed>
</object>
</body>

Just an example.... Quote from: kpac on November 05, 2008, 02:26:36 PM
Code: [Select]{
window.open("tsa\krhs_tsa.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=800, height=600");
}

Is there anyway to include this code into the actual "krhs_tsa.html" page that contains the .swf ? I don't have it set up to be linked from a javascript button. The .swf's html file is linked from inside an XML that another swf reads.Quote from: EchoLdrWolf316 on November 05, 2008, 03:29:58 PM
Is there anyway to include this code into the actual "krhs_tsa.html" page that contains the .swf ? I don't have it set up to be linked from a javascript button. The .swf's html file is linked from inside an XML that another swf reads.

I don't think so. But if you don't want it to be opened from a button (like a link, maybe), use this:

<a href="#" onclick="open_win()">Open Popup[/url]


Discussion

No Comment Found