Results 1 to 4 of 4

Thread: Remote popup player

  1. #1
    Join Date
    Aug 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Remote popup player

    I need to be able to provide my users with a code they can use to link to my popup player from their sites. The player window must have no URL scrollbars etc.. just a box 500x200 which opens in the middle of the screen.

    The link I give them must be fairly minimal like:

    <!-- Begin Link-->
    <a href="http://www.mysite.bla" target="_blank">Link</a>
    <!-- End Link-->

    Therefore I suppose the script functionality would be placed in the <head> of the player page.

    Now here's the tricky bit - that player page currently loads into a page in my main site, and so if anything is added to the <head> it should not cause the main site to resize..

    Any help would be HIGHLY appreciated!

    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Use JavaScript:

    Code:
    <a href="#" onclick="window.open('http://www.mysite.bla','newwin','scrollbar=no,menubar=no,statusbar=no')"
    - Mike

  3. #3
    Join Date
    Aug 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Mike

    Spot on! And congratulations because you've just made my day

    Just a quickie - I added the width/height because it didn't reflect it in the code you pasted, is there a way of centering the box too?

    Thanks

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Use the parameters left, and top to specify where it'll be on the screen. You can do the same for the width and height.
    - Mike

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
  •