Welcome to TalkGraphics.com
Results 1 to 5 of 5

Thread: Pop up window

  1. #1
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    268

    Default Pop up window

    Is there a way to have a window open - _blank with a size for the window?

    I have a graphic link that I want to link to a new window, but small enough to hold a swf image.

    Jim Toal

  2. #2
    Join Date
    Aug 2002
    Location
    A little french village east of Dallas, TX called Forney And now Austria and Germany too
    Posts
    1,053

    Default Re: Pop up window

    A quick web search turned up this reply...

    To my knowledge you cant do that with html alone, but a little bit of javascript will help:

    <script type="text/javascript">
    function showPopup(url) {
    newwindow=window.open(url,'name','height=190,width =520,top=200,left=300,resizable');
    if (window.focus) {newwindow.focus()}
    }
    </script>


    Then you code your link like that:


    <a href='...' onClick='showPopup(this.href);return(false);'>Info </a>


    When javascript is disabled, the link still works the normal way.


    You would need to add the first bit of Javascript to a placeholder and the link line you would need to put into the 'Link to Web or Email Adress' link field and uncheck Correct automatically.

    I am not a Javascript guru so I'm just guessing that this would work and you might have to play around with it some. Perhaps some of the code gurus here in the forums might be able to help you further.

    Eric
    I'm never wrong. I thought I was wrong once but it turns out that I was mistaken.
    Web Templates. My Beginner Video Tutorials
    My Club. My Album.
    My Other Album. My Tutorial.

  3. #3
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    268

    Default Re: Pop up window

    Thanks Eric, I'll give it a go.

    Jim

  4. #4

    Default Re: Pop up window

    Quote Originally Posted by JimToal View Post
    I have a graphic link that I want to link to a new window, but small enough to hold a swf image.
    Can you not use a popup layer with the swf <object code in a placeholder?

  5. #5
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    268

    Default Re: Pop up window

    Thanks for the help last night Steve, much appreciated. Got everything working, helps to be on the right layer.

    Cheers

    Jim

 

 

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
  •