target div

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

    target div

    I've divided my page in 2 DIVs

    the left one contains some thumbnails, the second should contain the image
    selected on the first div.

    is that possible ???

    <div
    style="position :absolute;overf low:auto;left:0 ;top:0;width:21 0;height:100%;" >
    <!--#include file="../photogallery/ThumbnailFrame. html"-->
    </div>
    <div
    style="position :absolute;overf low:auto;top:0; left:210;height :100%;width:80% ;
    ">
    <center>
    <img border="0" src="images/photo1.jpg">
    </center>
    </div>

    clicking on the thumbnail of the first div, the second one should show the
    selected one instead of showing the photo1.jpg

    BoB




    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  • Bob Bedford

    #2
    Re: target div

    Hi David,

    Thanks for your reply.
    [color=blue]
    > As you are asking this in comp.lang.javas cript, I'm going to assume that[/color]
    you[color=blue]
    > want to dynamically change the div to contain different images. In other
    > words - you want to emulate frames using JavaScript, which will introduce
    > all the problems for frames but limit the browser support.[/color]

    The fact is that I wanted to avoid the frames. If you look at the current
    work (http://www.bipsa.ch/airglaciers/fr/photogallerie.asp), the central
    part of the web site (between the menu and the footer) is a div that
    contains all the text. I've created one top menu, included in all pages, and
    a bottom footer, also included in all pages. If you look at the other pages,
    you will see that using DIV allow me to always show the top menu and footer,
    without using frames (so every page may be bookmarkable). Now, I would like
    to create the "photogalle ry" in wich I've vertical thumbnails, and the
    selected image (as described in the first thread). Creating separate page
    for each image (even dynamically by a server side script) isn't possible
    since every page must then include the top menu and bottom one.

    Maybe I'm on the wrong way doing it, but I'm sure it's possible to select an
    image on a div and then load the selected image in an other div.

    BoB

    PS: Very great site the one you sent !!! I like it !
    [color=blue]
    > Try something reliable instead, such as a seperate - bookmarkable - page[/color]
    for[color=blue]
    > each image. You can use a nice server side script to generate it
    > automatically, here's an example:
    >
    > * http://usenet.alt-html.org/brucies/butterflies/
    >[color=green]
    > > <div
    > >[/color]
    >[/color]
    style="position :absolute;overf low:auto;left:0 ;top:0;width:21 0;height:100%;" >[color=blue]
    >
    > You might want to take advantage of the CSS validator, you have syntax
    > errors there.
    >
    > --
    > David Dorward http://dorward.me.uk/[/color]




    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

    Comment

    • David Dorward

      #3
      Re: target div

      Bob Bedford wrote:
      [color=blue][color=green]
      >> As you are asking this in comp.lang.javas cript, I'm going to assume that[/color]
      > you[color=green]
      >> want to dynamically change the div to contain different images. In other
      >> words - you want to emulate frames using JavaScript, which will introduce
      >> all the problems for frames but limit the browser support.[/color][/color]
      [color=blue]
      > The fact is that I wanted to avoid the frames.[/color]

      Why? If you are going to reintroduce all their problems using a different
      technology, you might as well use frames as they support is better.
      [color=blue]
      > If you look at the current
      > work (http://www.bipsa.ch/airglaciers/fr/photogallerie.asp), the central
      > part of the web site (between the menu and the footer) is a div that
      > contains all the text. I've created one top menu, included in all pages,
      > and a bottom footer, also included in all pages. If you look at the other
      > pages, you will see that using DIV allow me to always show the top menu
      > and footer, without using frames (so every page may be bookmarkable).[/color]

      But still using up screen space all the time with something the user
      probably doesn't need.
      [color=blue]
      > Now, I would like to create the "photogalle ry" in wich I've vertical
      > thumbnails, and the selected image (as described in the first thread).
      > Creating separate page for each image (even dynamically by a server side
      > script) isn't possible since every page must then include the top menu and
      > bottom one.[/color]

      That doesn't follow. Why can't you include both parts using the script? If
      you moved all your deprecated presentational HTML in to CSS, then moved
      your CSS and JavaScript in to external files the bytes repeatedly
      transfered would insignificant, so it can't be a bandwidth issue.
      [color=blue]
      > Maybe I'm on the wrong way doing it, but I'm sure it's possible to select
      > an image on a div and then load the selected image in an other div.[/color]

      Its possible, but not (in this instance) smart.

      --
      David Dorward http://dorward.me.uk/

      Comment

      Working...