Image window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Darrell

    Image window

    I want to have a page that has a lot of thumb nails. I want to be able to
    click on a thumb nail and have it open in a window but I don't want a new
    window opening every time I click a thumb nail unless the first window
    closes it self. In other words I don't want a bunch of windows open.
    Is this possible?

    --
    Darrell


  • Jukka K. Korpela

    #2
    Re: Image window

    "Darrell" <darrell@machin emaster.com> wrote:
    [color=blue]
    > I want to have a page that has a lot of thumb nails. I want to be
    > able to click on a thumb nail and have it open in a window but I
    > don't want a new window opening every time I click a thumb nail
    > unless the first window closes it self. In other words I don't want
    > a bunch of windows open.[/color]

    The simplest way is to use simple links, with no target attributes and
    with no JavaScript. Just <a href="...">...</a>. That way, the user can
    select, using his browser's normal functions, how to access the linked
    resource.

    But to achieve what you are looking for, which isn't that bad IMHO,
    just use (in the <a> tag) a target attribute with an alphanumeric value
    that does not begin with the underline character "_". When you use the
    same value in different links, then (on most browsers) a window with
    that name is created when the use first follows such a link, and later
    that window will be used. The name has no particular significance, but
    target="image" would sound reasonable.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

    Comment

    • Louis Somers

      #3
      Re: Image window

      "Darrell" <darrell@machin emaster.com> wrote in news:vTNyb.2318 2$n56.11302
      @newsread1.news .pas.earthlink. net:
      [color=blue]
      > I want to have a page that has a lot of thumb nails. I want to be able to
      > click on a thumb nail and have it open in a window but I don't want a new
      > window opening every time I click a thumb nail unless the first window
      > closes it self. In other words I don't want a bunch of windows open.
      > Is this possible?
      >[/color]

      Some Javascript will do the job:

      <html>
      <head>
      <script language="javas cript" type="text/javascript">
      function BringTop() {
      PicWin.focus();
      }
      var PicWin = window.open('n1 .gif','PicWindo w');
      </script>
      <title>pictures </title>
      </head>
      <body>
      <a href="n1.gif" target="PicWind ow" onMouseUp="Brin gTop();">Image 1</a>
      <br>
      <a href="n2.gif" target="PicWind ow" onClick="BringT op();">Image 2</a>
      </body>
      </html>

      --
      News Updater, No scripts, No Database

      Comment

      Working...