Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Layers and buttons
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wij2
Novice

10 Posts

Posted - 23 Feb 2008 :  15:52:24  Show Profile  Visit wij2's Homepage  Reply with Quote
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

joneq
Super User

433 Posts

Posted - 23 Feb 2008 :  20:21:40  Show Profile  Visit joneq's Homepage  Reply with Quote
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
Go to Top of Page

wij2
Novice

10 Posts

Posted - 24 Feb 2008 :  01:08:58  Show Profile  Visit wij2's Homepage  Reply with Quote
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
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 25 Feb 2008 :  09:12:13  Show Profile  Visit s.dav's Homepage  Reply with Quote
If you know Javascript you can make a very simple function to hide all layers and show only one passing it only 1 parameter.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000