Closed Thread Icon

Topic awaiting preservation: Layer BG goes away when popping up (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8248" title="Pages that link to Topic awaiting preservation: Layer BG goes away when popping up (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Layer BG goes away when popping up <span class="small">(Page 1 of 1)</span>\

 
Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 07-26-2002 13:06

Hello!
Guys, I was making something with CSS and JavaScript, mustly to practice stuff. I've been using a lot mr.maX's Scripts and testing the opacity, bringing the layers to top and things like that.

the page is here and the problem is that the semi-opacity layers BG are ok, the work perfect, but when I make click in some link (make click on CV in the main menú, and then in 'currículum extendido') will open a new window. After that windows is open, the layers BG goes away when bringing them to top (make click after close the pop up in any option of the little menú

The BG is no longer there, I've cut out all the scripts but the bring-to-top and setopacity and the problem is still there....

Any Idea?

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 07-31-2002 10:43

Looks like the problem is the browser (IE)
So, me think it's better making a little 'reload' of the BG when opening the pop up.

To open the pop up I had this:

code:
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=600,left = 212,top = 0');");
}



And we (in www.forosdelweb.com) add the little thing to make the layers have a BG when poping up:

code:
var imagen = new Image()
imagen.src = "http://www.artreves.com/wakk/imagenes/wakkback.jpg"
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=600,left = 212,top = 0');");

for(z=0;z<layers.length;z++)
document.getElementById(layers[z]).style.backgroundImage="url("+imagen.src+")"

}



And now works cool!!!
=)




[This message has been edited by Wakkos (edited 07-31-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu