Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question chromeless windows?

    hello

    i wanted to ask if it is possible to make a chromeless(or modeless) window by itself and not a popup window?

    meaning if i access index.htm through flash or other application, the window will appear chromeless/modeless?

    i search through the internet and various websites and forums but all the tutorials requires a trigger (body onload or onclick) and then they can open up the chromeless/modeless window...

    i am no expert in javascript, in fact i am totally clueless until these few days where i started to do research for my project.. therefore any help is appreciated!

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    In falsh, in the event handlers, you can create a pop-up window setting attributes scrolling=no, statusbar=no, menubar=no etc etc so that it appears to pop up in a stateless window.

    You can trigger this from flash in a myriad of ways = off the timeline, on a user defined action, all sorts of ways

    hope this helps

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey thx!
    i didn't expect anyone to reply so fast

    but let say i am opening the html file from a application that doesn't have any ways to change the attributes then how can i go around to change the attributes in the file inself?

    i saw a script somewhere that can specifies the size of the window itself

    <script language="javascript">
    window.resizeTo(320,240);
    </script>

    can the other attributes be changed in the same way?

  • #4
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    is this the sort of thing you are looking for? It works in IE and NS6/mozilla

    Code:
    <html>
    <head>
    <title>test window</title>
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000">
    movement:<br>
    <a href="javascript:window.moveTo(100,100)">move window to 100,100</a><br>
    <a href="javascript:window.moveBy(5,0)">move window by 5 pixels right</a><br>
    <a href="javascript:window.moveBy(0,5)">move window by 5 pixels down</a><br>
    <a href="javascript:window.moveBy(-5,-5)">move window by 5 pixels left/up</a><br>
    <a href="javascript:window.moveBy(5,5)">move window by 5 pixels right/down</a><br>
    <br>
    size:<br>
    <a href="javascript:window.resizeTo(400,300)">resize window to 400,300(size includes toolbars,menus,etc)</a><br>
    <a href="javascript:window.resizeBy(50,0)">resize window by 50 pixels right</a><br>
    <a href="javascript:window.resizeBy(0,-50)">resize window by 50 pixels up</a><br>
    <a href="javascript:window.resizeBy(-20,50)">resize window by 50 pixels down,20 pixels narrower</a><br>
    <a href="javascript:window.resizeBy(10,10)">resize window by 50 pixels right,10 pixels down</a><br>
    </body>
    </html>
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As soon as IE 6 SP1 is installed, chromeless windows will no longer be possible in the Internet zone by default. Too many abusive web sites out there have made such a change necessary.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •