SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JS open window help

    hello-

    i have a page of thumbnails that when clicked i would like to open up in a new window w/ specific size and attributes.

    i know how to have each tumbnail open it's own html page w/ specific attributes, but...

    is there a way to have each thumbnail open the same html page, but with the appropriate image?

    am i making sense?

  2. #2
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, keep the target the same name
    Free Science Homework Help
    http://www.physicsforums.com

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi getyourbiglobster,

    there are many ways this can be done, one is to have the popup access a global variable in the original window (opener)and then use that variable to doc...write the image

    original window:
    <script>
    imgSrc = 'http://members.aol.com/grassblad/images/grassblade.gif"

    function goto(properties)
    {
    window.open('somename.gif','', the properties you want)
    }


    pop up:
    <script>
    imgSrc = opener.imgSrc
    document.write("<img src=" + imgSrc + ">")
    </script>

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


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
  •