How to hide at page load a layer?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

How to hide at page load a layer?

Post by Adrian »

Hello,

for my website I made my own menu with layer and scripts.

Although the menulayer is not visible, at page load the layer is visible for a very short time.
(rogarema dot net)
The layer is set in the masterpage as not visible.

I have tried a lot of posibilities with "events on pageload than hide the layer xxx", without success.

To avoid this visibility, I want to introduce now in the index page at start a little script ?? to set the layer as "hide".

How can I make this with java script?

Thank you, Adrian
Best Regards, Adrian

Rogarema.net
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to hide at page load a layer?

Post by Pablo »

To be able to help you, I need to see what you have done.
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: How to hide at page load a layer?

Post by Adrian »

hello Pablo,

is the link to the page enough?

rogarema.net
Best Regards, Adrian

Rogarema.net
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to hide at page load a layer?

Post by Pablo »

To be able to help you, I need a DEMO project so I can see all your settings.

Note: I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

Please see this FAQ for further details:
viewtopic.php?f=10&t=82134
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: How to hide at page load a layer?

Post by Adrian »

Hello Pablo,

here is a demo with 3 pages (6 MB??)

medialight.de/layer_hide.wbs

Thank you.

Best regards, Adrian
Best Regards, Adrian

Rogarema.net
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to hide at page load a layer?

Post by Pablo »

Where do I look for the problem?
Can you please describe exactly what I need to do?
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: How to hide at page load a layer?

Post by Adrian »

Hello Pablo,

the menu with the problem layer are in the masterpage.
In the masterpage the problerm layer is hidden and not visible, see object manager.
In the masterpage in the events I set the "onload" -> hide -> Menulayer.
The same event in the index page.

If you preview now the index site, you see for a short time the "Menulayer" flickering, and this is my problem.

how can I prevent this flickering of the menulayer?

Thank you for your support.

Best regards, Adrian
Best Regards, Adrian

Rogarema.net
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to hide at page load a layer?

Post by Pablo »

I do not think onload event is the best way to hide the menu, because this event will not be triggered until the page has been fully loaded.
It's better to hide the layer via CSS:

Code: Select all

<style>
#Menulayer
{
   display: none;
}
</style>
Also, there is a problem in the custom code section of the layer. You have added CSS to 'inside tag'. This code should not be placed here, it breaks the structure of the HTML.
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: How to hide at page load a layer?

Post by Adrian »

Hello Pablo,

yes, this was the (best) solution for my problem, thank you.

Best Regards, Adrian
Best Regards, Adrian

Rogarema.net
Post Reply