473,466 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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;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
2 9262
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Richard G. | last post by:
Hi All, I am newbie in XML. I am designing a dynamic menu and retrieving data from xml. I have the xml file something like this: <?xml version="1.0" ?> <ROOT>
2
by: Stanimir Stamenkov | last post by:
I'm trying to find out if it is permissible to include a schema document with absent target namespace to a schema with specified target namespace, and if it is, what are the rules to resolve the...
4
by: DaveO | last post by:
Hi all I have done lots of VB programming, but am not familiar with JavaScript. Can anyone tell me how to do this ....? I have a JS file for a menu system called menu.js It contains the...
36
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that...
4
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable...
2
by: Lethal Possum | last post by:
Hi all, I'm trying to make the following script work on Internet Explorer: function choose_target(form) { if (form.popup.checked == true) { form.target = '_blank'; } else { form.target =...
0
by: Shadow Lynx | last post by:
When using ASP.NET 2.0's built-in TreeView on a page with <BASE target = "AnythingBut_Self"></BASE> in the HEAD, the expand/collapse buttons fail to function. The reason for this is that the...
4
by: nesr235 | last post by:
I can't beleive that Microsoft would create the whole Sitemap XML datasource process but not have a TARGET tag. What am I missing? The only place I saw the target tag was at the treeview level. ...
15
by: amx | last post by:
I am trying to have any cell that in any row in any column (based upon code address change) that would Speak a word if the number is Under <10 and play a sound (wav) if the number is over >10. This...
92
by: Erwin Moller | last post by:
Hi group, I encoutered page validation error, but I don't know a way around. The page has the following doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.