Closed Thread Icon

Topic awaiting preservation: move Layers part Deux (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8310" title="Pages that link to Topic awaiting preservation: move Layers part Deux (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: move Layers part Deux <span class="small">(Page 1 of 1)</span>\

 
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-15-2002 17:59

OK, I have been beating my brains out to try to do this so here is goes again.
Ini gave me some great info here.

I have been working on it here

I am still a little stumped as to what do next I think.

If you click on the "Check" link it will show the div name and if it is at the "Left Position" or if it is at the "Docked Position" (docked being moved)

So, I know this is kind of a general question, but what do I do next. I am really confused.

Remember I don't want someone to do the code for me, I want to learn it.

What I am trying to do is this:

If the layer has been moved and I want to move the other layer, I want the moved layer to go back to home position and then move the next layer.
Make sense?

Thanks in advance.

Later,
C:\


~Binary is best~

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 09-15-2002 19:23

did you trying setting document.getElementById('theotherLayer).left to 'whateverItOriginallyWas'?

you can add it right on the 'onClick' attribute...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-16-2002 18:01

This isn't too hard, what you need is a couple of flags or checks.

Instead of calling the moveLayer function directly when you click a link you want to make a new function that finds out where the objects are at and then moves them accordingly.

You may want to take a look at only creating your objects once and then not having to continually call the getObj function and recreating this each time you want to move something. This also allows you to track the x position of the object.

It's really old and doesn't have Mozilla support yet (but that's only one line I need to add, I'm just lazy I might do it right now) but take a look at the code for that page. Look at the init function called on page load and the "clipObj" function/Object creator. To get some ideas.



.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-16-2002 18:36

Thanks Bit, but what page are you referring to?

Later,
C:\


~Binary is best~

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-16-2002 20:24

lol
whoops http://www.bitdamaged.com




.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-16-2002 22:20

cool. Thanks.

I am checking it out now.

Later,
C:\


~Binary is best~

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 09-17-2002 00:26

see, that's how you can tell...

when I start making excuses about deficiencies in a page- I'm talking about my homepage...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

« BackwardsOnwards »

Show Forum Drop Down Menu