Results 1 to 2 of 2

Thread: Javascript/ Actionscript Pop up using html web page

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

    Default Javascript/ Actionscript Pop up using html web page

    Ok for my first project at my internship, I have to make pop up windows for each picture in flash. The pop up window is going to be an html page. What is the action script I need to use. I have tried many other codes and nothing would happen.

  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

    What part of this needs to be flash? If you are popping up html pages onclick, the easiest way is the html:

    HTML Code:
    <a href="some.htm" target="_blank">Link Text or Image</a>
    But, folks usually want a bare bones window over which they have some control, so the next most simplest way is adding a javascript onclick event:

    HTML Code:
    <a href="some.htm" target="_blank" onclick="window.open(this.href,'','width=300, height=300, top=200, left=250, scrollbars, resizable');return false;">Link Text or Image</a>
    More control and customization are possible by passing off the onclick event to a function. A good example of this is found here on DD.
    Last edited by jscheuer1; 11-21-2005 at 07:03 PM.
    - 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
  •