Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: HELP --- I need help FAST --- website needed by tommorow

  1. #11
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you are determined to do this, and if my new code works, you should do a browser test:

    HTML Code:
    <input type="button" value="Close Window" onclick="if(document.body.filters){top.window.parent.opener=self;top.window.parent.close();}else {top.window.close();}">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  2. #12
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks you have been a big help i will try this later.... thanks

  3. #13
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    do you need my webstie anymore because i want to remove it from this post if i can

  4. #14
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nope, i tried both of the codes and they both dont work (the code before and the code you just gave me)

    THANKS FOR YOUR HELP

  5. #15
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i think this might make it easier....is there a way to display something in a website but make it disapper when its in an chromless window? because i want the logout button to work for both chromless and fullscreen windows, but i only want that because i dont want visitors to be clicking on close window and it not closing out of the chromless window....

  6. #16
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by CMMVideos
    i think this might make it easier....is there a way to display something in a website but make it disapper when its in an chromless window? because i want the logout button to work for both chromless and fullscreen windows, but i only want that because i dont want visitors to be clicking on close window and it not closing out of the chromless window....

    If I understand that right, this will do that, place it where you want the button to be:

    Code:
    <script type="text/javascript">
    if(!document.body.filters)
    document.write('<input type="button" value="Close Window" onclick="top.window.close();">')
    </script>
    IE users will see nothing, other browsers will see the close window button and it will work for them.

    A few things you might try as an onclick event for the button on the chromeless window for IE are:

    opener.mywin001.close();

    and

    opener.opener.mywin001.close();

    and

    opener.opener.opener.mywin001.close();

    and

    top.window.opener.mywin001.close();

    and

    top.window.parent.opener.mywin001.close();

    and

    parent.opener.mywin001.close();

    where 'mywin001' is the variable name you assigned (as in the demo) to the chromeless window when you opened it.
    Last edited by jscheuer1; 11-22-2005 at 03:20 AM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #17
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    today during school i though about doing the same thing (using mywin001 in the script) but i will try all your sugestions.....thanks a lot!


    PS. Do you need they website anymore?

  8. #18
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    so far i tried the code you said about making it appear only in the fullscreen window, but it's not working .... the two script i am working with are from http://dynamicdrive.com/dynamicindex8/window1.htm and http://dynamicdrive.com/dynamicindex8/window1.htm

    i want the fullscreen one to show the logout button but not the chromless one


    Thanks, I'll try the others 2

  9. #19
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    does anyone know that answer?

  10. #20
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by CMMVideos
    so far i tried the code you said about making it appear only in the fullscreen window, but it's not working .... the two script i am working with are from http://dynamicdrive.com/dynamicindex8/window1.htm and http://dynamicdrive.com/dynamicindex8/window1.htm

    i want the fullscreen one to show the logout button but not the chromless one


    Thanks, I'll try the others 2
    You've lost me, those (see above quoted) are the same two scripts.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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