473,651 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript">
<!--
var output = '<BODY STYLE="color: #FFF; background: #222 URL('+
opener.globalIm age4 + ') fixed no-repeat center center;">'
document.write( output);
//--></SCRIPT>

<A HREF="#" onClick="window .close()">
<DIV CLASS="envelopp e">
<DIV CLASS="tete">
<P CLASS="grispeti t">Click on picture to close window
</DIV>

<DIV CLASS="pied">
<SCRIPT LANGUAGE="JavaS cript">
<!--
var output = opener.globalCa ption4 ;
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 5714
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
4938
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 when I pass the mouse over the logo. Is there a way to replace a link by an image that will still be clickable? Thanks, -- Kerberos.
5
3131
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 clickable when you move over the chevron. In Firefox, the link works as expected - the full image can be clicked. Does anyone know what's causing this bug? My XHTML valid, although my
9
9587
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. I know how to show the information based on another part of the page, but I don't know how to make a map of a country clickable ( meaning, clicking different part of the map to show info on the page). How can I make a map of a country with...
9
2716
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 color to indicate to the user which cells are clickable). (I think I could achieve this by adding an image (with attached hyperlink) to each clickable cell but since this is a large table (7 x 30) I think this might be a slow solution). ...
0
1165
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) only if there is an event on that day while other days are not clickable if there is no event. I have see the post on scottonwriting about customizing the calendar to get ti to have clickable days for .text. But i havent been able to modify this...
3
4751
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 desktop but now I'm stuck. For those who need to see the code -look below IntPtr hWnd = Win32.WindowFromPoint(Cursor.Position); With the handle I can get alot of cool information such as: Caption,
7
2633
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 them in a browser doesn't take me to the file link. I have found examples for clickable URL's, FTP links and mailto addresses but not files. I am managing to produce output like this: <a...
3
5554
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 clickable button *inside* another image. I don't know if this is along the right lines but the following code puts a image inside another image. Perhaps I could then make im2 clickable or is it just not possible? Any help would be very much
3
5778
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 fl.transitions.easing.*; TransitionManager.start(img4_mc, {type:Zoom, direction:0, duration:3, easing: Bounce.easeOut}); TransitionManager.start(img4_mc, {type:Rotate, direction:Transition.IN, duration:30, easing:Strong.easeInOut, ccw:false, degrees:720});...
0
8275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8460
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.