473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Clickable DIV

The URL is:
http://dardel.info/tintin/random.html

What I want to achieve:
When you click a thumbnail, a window opens with a larger copy of the
pict _as the background_.
I want the new window to close when clicking anywhere on it.

Both the background of the window and the caption are produced by
Javascript, but the probleme is not here.

The code is:

<SCRIPT LANGUAGE="JavaScript">
<!--
var output = '<BODY STYLE="color: #FFF; background: #222 URL('+
opener.globalImage4 + ') fixed no-repeat center center;">'
document.write(output);
//--></SCRIPT>

<A HREF="#" onClick="window.close()">
<DIV CLASS="enveloppe">
<DIV CLASS="tete">
<P CLASS="grispetit">Click on picture to close window
</DIV>

<DIV CLASS="pied">
<SCRIPT LANGUAGE="JavaScript">
<!--
var output = opener.globalCaption4 ;
document.write(output);
//-->
</SCRIPT>
</DIV>

</DIV>
</A>

With Safari, everything is fine.
With Firefox (1.0.1 for Mac) the display is OK, but only the two text
bits are clickable (and close the window).
With old Nescape (7 for Mac), same as FIrefox.
With IE 5.2 for Mac, all is wrong and the background pict does not even
show, unless I re-load after the window is open. The two text biits are
(superposed) at the top.
With IE 5 for PC (on my VIrtualPC) the text bits are on the top, the
image shows but only the top div is clickable.

Can I find a way to have the entire window clickable? I know how to
make it if the pict is not in the background, but not if it is.

Thanks in advance for ideas.

--
François de Dardel
http://dardel.info/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail

Jan 28 '07 #1
1 5691
On 2007-01-28 18:05:18 +0100, François de Dardel <da*******@noos.frsaid:
The URL is:
http://dardel.info/tintin/random.html

What I want to achieve:
When you click a thumbnail, a window opens with a larger copy of the
pict _as the background_.
I want the new window to close when clicking anywhere on it.

Both the background of the window and the caption are produced by
Javascript, but the problem is not here.

With Safari, everything is fine.
With Firefox (1.0.1 for Mac) the display is OK, but only the two text
bits are clickable (and close the window).
With IE 5.2 for Mac, all is wrong and the background pict does not even
show, unless I re-load after the window is open. The two text biits are
(superposed) at the top.
With IE 5 for PC (on my VIrtualPC) the text bits are on the top, the
image shows but only the top div is clickable.

Can I find a way to have the entire window clickable? I know how to
make it if the pict is not in the background, but not if it is.
I found a solution, using a transparent GIF that takes (in principle)
the whole window. This solution is now posted and works in all browsers
I have tested.

A fringe benefit of the exercise is that the picture I want to show is
a bit difficult to download (except of course with a print screen) so
that may be used by those who don't want their stuff to be copied too
easily.

--
François de Dardel
http://dardel.info/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail

Jan 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Kerberos | last post by:
I followed Dan Cederholm's image replacement tutorial, to replace a header tag by a logo. The h1 is clickable if no CSS is applied but it I replace it by the logo, the area isn't clickable anymore...
5
by: Matt Bostock | last post by:
Hi, Please see: http://www.drfunkenstein.net/catalogue/categories/fancydress/81/go/2/ ...and try clicking on the '< previous' link underneath the costume thumbnails. The link is only...
9
by: Lando Chez | last post by:
Hi I need a map of a country on which a region( part of the map) can be clicked ( or on mouseover) causing, on another part of the same page, the appearance of information regarding the region....
9
by: Paul W | last post by:
I'm using a Table webcontrol to display a 'grid' to the user. Various cells should be 'clickable' by the user (to run javascript). How can I make this happen? (currently I use the background cell...
0
by: Showjumper | last post by:
I have seen the article on 4 guys that descibes creating an event calandar. However what i would like to do is have the days be clickable (i.e. click the day and it show the details for that event)...
3
by: Henrik | last post by:
I need to get a list of clickable objects on the desktop and their positions. I have written a small program in C# and by using the Win32 function: WindowFromPoint -function I get a handle to the...
7
by: Jeff Gaines | last post by:
I have spent the day learning how to use Zend Development Environment. I can now produce a list of files in a directory, filtered by extension, and apparently clickable. Unfortunately clicking on...
3
by: crazychrisy54 | last post by:
Hi there I just wondered if there is any way using GD to insert a clickable button or some clickable text into a image? It is possible to create images for buttons but what if you want a...
3
by: zb42 | last post by:
I have a _mc that I've added to the stage. On it's layers first frame I have this code that spins the _mc around and has some great effects: import fl.transitions.*; import...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.