InterviewSolution
Saved Bookmarks
| 1. |
Solve : Bare popup HTML? |
|
Answer» I can't seem to find the code to make this: 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]{ 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] |
|