pelegk1
06-03-2003, 09:07 AM
i want to open a pop up window that will not have any frame around - what i mean s no border of the window just the inside itself!!!
how do i do it?
thnaks in advance
Peleg
how do i do it?
thnaks in advance
Peleg
|
Click to See Complete Forum and Search --> : openning a pop up with no frame around? pelegk1 06-03-2003, 09:07 AM i want to open a pop up window that will not have any frame around - what i mean s no border of the window just the inside itself!!! how do i do it? thnaks in advance Peleg Motabobo 06-03-2003, 09:09 AM Do you mean something like a chromeless window ??? http://www.dynamicdrive.com/dynamicindex8/chromeless.htm Gollum 06-03-2003, 09:10 AM Sorry, No can do in Javascript. Browser surrounds are something you just have to live with. The best you can do is get rid of most of the chrome... window.open(url, '', 'scrollbars=no,toolbar=no,status=no,menubar=no,location=no,resizable=no'); Webskater 06-03-2003, 11:53 AM I don't know if it works with other browsers but, if you are using IE, you can use: window.createPopup this creates a completely chromeless window that you can do lots of useful things with like message boxes, drop-down menus etc. Mr J 06-03-2003, 01:55 PM Is this popup window going to remain open when others are shut? diamonds 06-03-2003, 03:12 PM Actually, you can do a "totally embossed" window. let me go get the script:rolleyes: diamonds 06-03-2003, 05:29 PM Sorry that took so long ;) Here is the code: <script language="JavaScript"> function Open() { var openwin = showModalDialog("URL.html","Name","dialogWidth:130px; dialogHeight:110px" ); } </script> <input type="button" value="click" name="click" onclick="Open()"> I dont know why the function needs a cap. letter... but it WON'T WORK without one. Mr J 06-04-2003, 11:42 AM You should not use the word Open as a function name as this is classed as a reserved word. Use something like open_win() instead. Also a Modal window is only like a standard window except the bond between itself and the parent window, not really frameless. A frameless window is basically a Fullscreen window that is resized with lots of javascript and CSS to make it functional The following script shows the basic idea <script language="Javascript"> <!-- var Width=200 // window width var Height=200 // window height var Left = (screen.width/2)-(Width/2) // center var Top = (screen.height/2)-(Height/2) // center var Autoclose = true function openFrameless(url){ FrameLess = window.open(url,"noframewin","fullscreen") FrameLess.document.body.style.overflow="auto" // auto scrollbars FrameLess.resizeTo(Width,Height) // resize FrameLess.moveTo(Left,Top) // position FrameLess.focus() if (Autoclose){ window.onunload = function(){ FrameLess.close() } } } // --> </script> <a href="#null" onclick="openFrameless('YOURPAGE.htm')">Open Frameless</a> pelegk1 08-19-2003, 01:48 AM where mostof the world stil ddint get there !!!:( webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |