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
How to hide at page load a layer?
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
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
Re: How to hide at page load a layer?
To be able to help you, I need to see what you have done.
Re: How to hide at page load a layer?
hello Pablo,
is the link to the page enough?
rogarema.net
is the link to the page enough?
rogarema.net
Re: How to hide at page load a layer?
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
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
Re: How to hide at page load a layer?
Hello Pablo,
here is a demo with 3 pages (6 MB??)
medialight.de/layer_hide.wbs
Thank you.
Best regards, Adrian
here is a demo with 3 pages (6 MB??)
medialight.de/layer_hide.wbs
Thank you.
Best regards, Adrian
Re: How to hide at page load a layer?
Where do I look for the problem?
Can you please describe exactly what I need to do?
Can you please describe exactly what I need to do?
Re: How to hide at page load a layer?
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
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
Re: How to hide at page load a layer?
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:
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.
It's better to hide the layer via CSS:
Code: Select all
<style>
#Menulayer
{
display: none;
}
</style>
Re: How to hide at page load a layer?
Hello Pablo,
yes, this was the (best) solution for my problem, thank you.
Best Regards, Adrian
yes, this was the (best) solution for my problem, thank you.
Best Regards, Adrian