dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: floating window - www.protocol7.com - How?

  1. #1

    resolved

    Any ideas how he made this floating window without boarders? Drag it outside the browser, that it looks like it is in.

    Only works on a PC as far as I can see.

  2. #2
    I just checked the html source...
    ----------------
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    /**************************************
    * copyright niklas gustavsson
    * please email me before using this
    * niklas.gustavsson@framfab.se
    **************************************/


    var ie= (document.all) ? 1:0

    function openWindowLess() {
    width=790;
    height=300;

    var str="fullscreen=1,menubar=0,toolbar=0,directories= 0,location=0,status=0,scrollbars=0,width=" + width + ",height=" + height + ",resizable="
    str+= (ie) ? "0":"1"

    var p7win=window.open("frameset.asp", "", str, true)

    p7win.resizeTo(width, height)
    p7win.moveTo(Math.round((screen.width-width)/2) , Math.round((screen.height-height)/2))
    p7win.focus();
    }

    openWindowLess()

    //-->
    </SCRIPT>
    ----------------
    Hope this helps, just be sure to change the values.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center