By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,462 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,462 IT Pros & Developers. It's quick & easy.

target div

P: n/a
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;overflow:auto;left:0;top: 0;width:210;height:100%;">
<!--#include file="../photogallery/ThumbnailFrame.html"-->
</div>
<div
style="position:absolute;overflow: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! =-----
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi David,

Thanks for your reply.
As you are asking this in comp.lang.javascript, I'm going to assume that you 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.
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 "photogallery" 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 !
Try something reliable instead, such as a seperate - bookmarkable - page for 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/
<div

style="position:absolute;overflow:auto;left:0;top: 0;width:210;height:100%;">
You might want to take advantage of the CSS validator, you have syntax
errors there.

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



-----= 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! =-----
Jul 20 '05 #2

P: n/a
Bob Bedford wrote:
As you are asking this in comp.lang.javascript, I'm going to assume that you
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.

The fact is that I wanted to avoid the frames.
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.
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).
But still using up screen space all the time with something the user
probably doesn't need.
Now, I would like to create the "photogallery" 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.
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.
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.


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

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.