...

View Full Version : z-index problem? - NOW RESOLVED.



effpeetee
12-24-2007, 07:46 PM
http://www.exitfegs.co.uk/HoverText.html

This program when entered has a small Home icon at the top left.
When a name is selected a picture will come up which will hide the icon. As it returns the program to the home page, I would like the Home icon to always show through. Is there a way to do this. I have tried various settings of z-index with no joy.:confused:



Frank

Apostropartheid
12-24-2007, 07:59 PM
Hah, you have a method of doing it on your site (http://exitfegs.co.uk/steve.html). Just use text instead of images.

effpeetee
12-24-2007, 08:06 PM
Hah, you have a method of doing it on your site (http://exitegs.co.uk/steve.html). Just use text instead of images.
Yes but those images are transitory. I want to do it with static images and then click the icon to return.
Also, I would like to get the z-index problem sorted in my mind.

Frank
PS: Your link left out the f in exitfegs (It is already in my signature anyway.)
PPS: Happy Christmas and a prosperous New Year.

Apostropartheid
12-24-2007, 10:19 PM
Changed =P
There's no real way of doing this, seeing as it's a JPEG file. You have a couple of options, though.
Use a frameset.
Link to a static page.
Use a dynamic page which changes the img's SRC when you query it.
Use Javascript to put it on the page you have already.Merry Christmas :D

Mwnciau
12-24-2007, 10:21 PM
Also, I would like to get the z-index problem sorted in my mind.

If I remember correctly z-index works only on formatted elements

Apostropartheid
12-24-2007, 10:24 PM
You see, you're linking directly to the image. No HTML can appear here, as the MIME type is image/jpeg. If it were text/html or application/xhtml+xml (or any other MIME, for that matter) it would appear as a lot of random digits. Try opening an image in Notepad and you'll see what I mean.

effpeetee
12-24-2007, 11:51 PM
You see, you're linking directly to the image. No HTML can appear here, as the MIME type is image/jpeg. If it were text/html or application/xhtml+xml (or any other MIME, for that matter) it would appear as a lot of random digits. Try opening an image in Notepad and you'll see what I mean.
Hello Both,

Some time ago I had a program where I wanted to use the images and thumbs to use by clicking the thumbs and getting the main jpeg on screen which I then wanted to get back to the index page. I managed to make it work without linking each seperate image by linking the Div that they were in.
I cannot find the program now, but it worked well (to my surprise because I did not know why!) and had merely found it by trial and error.

Have you any idea how I did it?

Frank

effpeetee
12-26-2007, 09:15 AM
Any post-Christmas thoughts?

Frank

Arbitrator
12-26-2007, 10:38 AM
This program when entered has a small Home icon at the top left.I donít see the mentioned icon. Maybe thatís because Mozilla Firefox hides elements with a negative z-index value though.


If I remember correctly z-index works only on formatted elementsIt only applies to elements with position property values relative, absolute, and fixed.


Any post-Christmas thoughts?Iím not quite sure what effect youíre aiming for, but it sounds like something that would be done via scripting. For an example, see http://www.jsgp.us/demos/cf130209.html.

effpeetee
12-26-2007, 11:41 AM
Arbitrator,

http://www.exitfegs.co.uk/HoverText.html

This will explain better.

The small icon top left needs to stay on top of the image.

EDIT This thread I seem to have mixed up with my other current thread about hyperlinks to Div's

Sorry about that, but ultimately they are about the same project. But your solution to this given above solves the Z-index part.



Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum