Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Layers and buttons

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
wij2 Posted - 23 Feb 2008 : 15:52:24
I'm wondering if someone can tell me if I'm doing the right thing: 1 have one page with multiple layers and I want to show a layer when a button is clicked but then the other layers should be hidden. Now I do this with the show/hide methods on the click event. But this means that if I have 8 layers then every button will have 8 hide actions and 1 show... I'm wondering if this can be done in a more efficient way?

I tend to remember that there were a lot of templates on this site available with a lot of good ideas incorporated in it... One of the template was one with only 1 page and on it multiple layers driven by buttons... are these templates still available?

Thx!

Regards,

Marco
3   L A T E S T    R E P L I E S    (Newest First)
s.dav Posted - 25 Feb 2008 : 09:12:13
If you know Javascript you can make a very simple function to hide all layers and show only one passing it only 1 parameter.
wij2 Posted - 24 Feb 2008 : 01:08:58
Thanks Joneq! That's exactly the sample i was looking for.

So it seems that I'm doing it the way it should be done (hideing all layers and show 1 layer)...

I was expecting/hopeing that there was a hide-all-layers method or maybe a possibility to solve it with a 1 java-script call from every object.

Regards,

Marco
joneq Posted - 23 Feb 2008 : 20:21:40
Do you mean red sea from this page..

http://www.dynamic-html-editor.com/en/tutorials.asp

don't know about an easier way to do the JS

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000