Results 1 to 4 of 4

Thread: Channel Mode Window Opener Script

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

    Default Channel Mode Window Opener Script

    Channel Mode Window Opener Script
    http://www.dynamicdrive.com/dynamicindex8/window2.htm

    Hello all!
    I was just wondering if anyone knew a way to make a link open automatically to a channel mode window. The script above is for a button that when clicked opens up to a channel mode window, however I was hoping to do this automatically when a link is clicked. I noticed that there is a script for auto-maximize the window...though it's not the same as channel mode.

    Any help will greatly be appreciated...
    Thanks.

  2. #2
    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

    Code:
    <script type="text/javascript">
    
    /*
    Channel Mode Window Opener Script- 
    © Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions,
    100's more DHTML scripts, and Terms Of
    Use, visit dynamicdrive.com
    */
    
    function channel(url){
    window.open(url,"","channelmode,scrollbars")
    }
    </script>
    <a href="index.html"  onclick="channel(this.href);return false;">Open window</a>
    - John
    ________________________

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

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

    Default

    Thank You...and just another quick question:

    is there a way to put in the script on to the page itself so that it opens up in channel mode automatically without it mattering whether or not the link is set to open the page in channel mode? So that when anyone wants to go to the page by inputting the complete address instead of hitting a link, the page will come up in channel mode.

    Once again,
    Thank you so much for all your help...

  4. #4
    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

    There was a time but, with increased security in modern browsers, that no longer can be done.
    - 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
  •