Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-27-2003, 06:45 PM   #1 (permalink)
ADZ
 
Master Techie

Join Date: May 2003

Posts: 2,233

ADZ is on a distinguished road

Send a message via Yahoo to ADZ
Default JavaScript Layers

Hey guys,
im having a little problem here, I am making a site and am having some issues doing so. if you go to:
http://members.shaw.ca/adamazad/

you will see a page that looks like an OS (Very plain Jane so far)

The issue I am having is when you click on one of the files or folders, it sends it to the back and not the front. Does anyone know a way to solve this?

Thanks in advanced.
ADZ is offline  
Old 12-04-2003, 11:31 AM   #2 (permalink)
 
Newb Techie

Join Date: Nov 2003

Posts: 10

chillz

Default

Hey that's a pretty neat effect.

Didn't really look at your code much (been awake for 24 hours) but are you sure that your script know what the current z-index number is? So it can +1 it and go ahead of it when you click? For example the big box has a z-index of 10, when you click on the link for the lil box to pop up, it has to fetch the big boxes z-index (if it is opened) and +1, to make it appear on top...

I dunno, seems like you have a little bug (or your missing sumthing), you seem to know what you are doing.

let my look at ur code sum more
chillz is offline  
Old 12-04-2003, 11:43 AM   #3 (permalink)
 
Newb Techie

Join Date: Nov 2003

Posts: 10

chillz

Default

PHP Code:
function MM_showHideLayers() { //v6.0
  
var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (
i=0i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (
obj.style) { obj=obj.stylev=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    
obj.visibility=v; }

Thats the code the opens the boxes?

And...

PHP Code:
.demo  {color:#000033; background-color:#cccccc; layer-background-color:#cccccc;
        
position:absolutetop:174pxleft:210pxwidth:321pxheight:118px;
        
z-index:99;  visibility:hidden;}
.
demo1  {color:#000033; background-color:#cccccc; layer-background-color:#cccccc;
        
position:absolutetop:110pxleft:367pxwidth:112pxheight:98px;
        
z-index:99;  visibility:hidden;} 

Thats the styles for the 2 boxes?



If this is the case, the 2 z-indexes are the same, 99, and that function doesn't change it... try making it +1 of the other's value each time...

Weird, in IE sumtimes it works, and sumtimes it doesn't...
chillz is offline  
Old 12-10-2003, 04:04 PM   #4 (permalink)
ADZ
 
Master Techie

Join Date: May 2003

Posts: 2,233

ADZ is on a distinguished road

Send a message via Yahoo to ADZ
Default

I will try that. Thanks!
ADZ is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On