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 10 of 10
  1. #1
    New Coder
    Join Date
    Feb 2003
    Location
    SD, CaLi
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Chromeless window help?

    hey i was wondering why i cant get my chromeless window to work when i put it in it says error

    here's the html for the chromeless
    <script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
    <script language="javascript">

    /*
    Chromeless Window (v3.5)- By Gabriel Suchowolski (this credit MUST stay intact)
    Author site at http://www.microbians.com
    Visit http://www.dynamicdrive.com for this script
    */

    //For paramater explanations, see accompanying faq.htm file
    function openIT(u,W,H,X,Y,n,b,x,m,r) {
    var cU ='close.gif' //gif for close on normal state.
    var cO ='close.gif' //gif for close on mouseover.
    var cL ='clock.gif' //gif for loading indicator.
    var mU ='minimize.gif' //gif for minimize to taskbar on normal state.
    var mO ='minimize.gif' //gif for minimize to taskbar on mouseover.
    var xU ='max.gif' //gif for maximize normal state.
    var xO ='max.gif' //gif for maximize on mouseover.
    var rU ='restore.gif' //gif for minimize on normal state.
    var rO ='restore.gif' //gif for minimize on mouseover.
    var tH ='<font face=verdana size=2>Chromeless Window</font>' //title for the title bar in html format.
    var tW ='Chromeless Window' //title for the task bar of Windows.
    var wB ='#D5D5FF' //Border color.
    var wBs ='#D5D5FF' //Border color on window drag.
    var wBG ='#D5D5FF' //Background of the title bar.
    var wBGs='#D5D5FF' //Background of the title bar on window drag.
    var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0' //Html parameters for Netscape.
    var fSO ='scrolling=auto noresize' //Html parameters for main content frame.
    var brd =b||5; //Extra border size.
    var max =x||false; //Maxzimize option (true|false).
    var min =m||false; //Minimize to taskbar option (true|false).
    var res =r||false; //Resizable window (true|false).
    var tsz =20; //Height of title bar.
    return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
    }

    </script><script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
    thats in the <head> tag


    and this is to open the window


    <p><a href="#" onclick="mywin001=openIT('http://www.google.com',600,400,null,null,'mywin001',5,true,true,true);return false">
    Open Google.com</a>
    but i cant get it to work =\
    im sorry if this is wayy too long
    google is just the example, im putting in my site and changing stuff, but i gotta get it to work first =\
    ¤([-=JpDm=-])

  • #2
    New to the CF scene
    Join Date
    Feb 2003
    Location
    Dublin
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure as it's been a LONG while since I used a chromeless window. My advice is not to use it though... they're soooooooo sloooooooooow.

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    I think IE stopped supporting them due to some security issues. I'm not sure what version, but if you have IE6, it probably won't work.

  • #4
    New Coder
    Join Date
    Feb 2003
    Location
    SD, CaLi
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    o... but i just saw this site that had it.... and i viewed it just fine, it was pretty fast too... and im running on XP and ie6

    no problems here
    ¤([-=JpDm=-])

  • #5
    New Coder
    Join Date
    Feb 2003
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here's one simple way:

    <html><head>
    <title></title>
    <script language="JavaScript">
    function launchwin(page) {
    newwin=window.open(page,"myTitle","fullscreen=1,scrollbars=0");
    newwin.resizeTo(screen.availWidth,screen.availHeight+1);
    }
    </script>
    <body>
    <a href="javascript:launchwin('content.html')";>click here to open it.</a>
    </body>
    </html>

    Promise me that you'll put an obvious exit button in the top right though!! ; )) Microbians script ok only when you need resizable chromeless windows, but in that case, check his site for help files.

    Jenn

  • #6
    New Coder
    Join Date
    Feb 2003
    Location
    SD, CaLi
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whoa... hahaha full screen

    thats cool, but not really what i wanted. my site has nonresizeable scrollbars but i wanted to customize the chrome to something else ( like microbians) but i cant seem to get it to work =\

    but i guess like the warning says.. xp doesnt support it... but i know a site that has it and it works just fine...
    ¤([-=JpDm=-])

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think I can help.

    I still like chromeless windows, no matter what - my sites are my art, don't like it.... sorry.

    Anyway, what does the error say exactly, or do you have a URL where I can go and see it?

    (just a suggestion - loose the no-right click script: my pet peeve)
    Last edited by Quiet Storm; 02-20-2003 at 08:50 PM.
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #8
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Chromeless windows will not work if you have XP, IE6, and install service pack 1. So anyone who keeps their computer up to date will not see chromeless windows. Here's the link on dynamic drive where I read this:

    http://www.dynamicdrive.com/dynamici...chromeless.htm

    edit: it's kind of like the opposite of supporting Netscape for users who upgrade too slowly
    Last edited by arnyinc; 02-20-2003 at 09:56 PM.

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Won't work on any windows OS/IE6/SP1. Just opens fullscreen...

    If you code your site for that problem, it can still look nice. I've got it so if the page opens fullscreen, everything is still nice and centered (used FRAMES).

    There's also another Chromeless2 code that will open on IE6 w/SP1... But unfortunately it doesn't seem to like FRAMES or outside linking. Sites using iFRAMES won't show up either.

    Another option is to have JavaScript detect if your visitors IE browser has SP1 installed. If so, you could have JavaScript open the page a certain size:

    window.open('Page2.html','NewWindow','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,dire ctories=no,width=400,height=250')

    If no SP1, then a link could provide normal Chromeless access!
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #10
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ...

    I'm running windows xp and followed the above posted link to dynamic drive. Clicked the link and got google to open. Chromeless works fine here. I've worked with them in windows millenium edition, and they are so easy to screw up. My advice is to go follow the instructors at dynamic drive to get reinstalled on your machine, then just change urls to begin with to your own, and just take it one step at a time.

    Chromelss are pretty cool, though!
    If at first you don't succeed, spend more time online researching javascript!
    Beck


  •  

    Posting Permissions

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