Answer the question
In order to leave comments, you need to log in
How to make lightbox open on page load?
Given:
- there is a site on cms joomla2.5 and a template from yootheme;
- there is a lightbox component in the widgetkit from the same yootheme ( www.yootheme.com/widgetkit/examples/lightbox);
- there are two options for the subscription form: from rsform and from the pechkin-mail.ru service What you
need to do: a
lightbox with a subscription form opens not when you click on a link, but when a certain page is loaded. Moreover, in order not to irritate honest people, it is necessary that the lightbox opens only at the first entry and, when closed, folds into a small panel (like how it is now fashionable to do “Ask a consultant a question”)
There is no layout to show. I saw this function on the website travelata.ru, when there was an action with some kind of magazine. I want to do something similar for myself.
Question: how to do it without additional plugins? I'm sure all this can be organized using widgetkit.
I would appreciate any thoughts on how to make this as easy as possible. Thank you.
Answer the question
In order to leave comments, you need to log in
Everything is simple, when loading, you need to create cookies so that the user has visited this page, and add a click event on the desired element via js. When you re-view, the system checks for the existence of a cookie, if it exists, it does not open it, if it exists, we create cookies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question