You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

  Sunday, 04 September 2016
  12 Replies
  7.3K Visits
Hello

i want to know how can i make to show a popup when users are just 10 seconds in the page?

the mediabox will start to work when the users stay in the page web 10 seconds.

Thanks
more than a month ago
·
#86322
You will have to trigger the popup manually using javascript, eg:

window.setTimeout(function() {
jcepopup.open('popup.html', 'Popup Title', '', '', {'width': 800});
}, 10000);

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#86362
Thanks for your answer

I try to fix the height and width of popup in this code javascript,,

window.setTimeout(function() {
jcepopup.open('popup.html', 'Popup Title', '', '', {'width': 300}, {'height': 400});
}, 10000);

but it isn´t working

Before i wrote this code in html, the popup worked but there isn´t delay. How can i rewrite code in html for delay ?

the code html is this

a href="popup.html" target="_blank" type="iframe" class="jcepopup autopopup-single" data-mediabox-width="300" data-mediabox-height="400" data-mediabox-title="popup_title" data-mediabox-caption="popup_caption">/a


Kind Regards
more than a month ago
·
#86364

I try to fix the height and width of popup in this code javascript,,

window.setTimeout(function() {
jcepopup.open('popup.html', 'Popup Title', '', '', {'width': 300}, {'height': 400});
}, 10000);

but it isn´t working


This is incorrect. It should be:

window.setTimeout(function() {
jcepopup.open('popup.html', 'Popup Title', '', '', {'width': 300, 'height': 400});
}, 10000);

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#109825
Thank you for this solution. It works fine so far, but the popup is always displayed fullscreen, despite specifying {'width': 300, 'height': 400});
It does not work with px. Does anyone has any solution for this problem?

The second question is: How do I make the popup appear only on a specific page?

I would be very grateful for a short help.
more than a month ago
·
#109826
Thank you for this solution. It works fine so far, but the popup is always displayed fullscreen, despite specifying {'width': 300, 'height': 400});
It does not work with px. Does anyone has any solution for this problem?


Please try JCE MediaBox 2.1.3 Beta - https://www.joomlacontenteditor.net/downloads/mediabox/development

The second question is: How do I make the popup appear only on a specific page?


In the JCE MediaBox parameters (Extensions -> Plugins -> JCE MediaBox), you can assign JCE MediaBox to a specific menu item.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#109828
Thank you for your quick reply. But unfortunately the window still opens in fullpage mode.
more than a month ago
·
#109829
Please post a link to an example.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#109830
https://www.pixelicon.de/testtest.html
It needs 10 seconds to pop up.
more than a month ago
·
#109831
The popup code on your site does not have any dimensions set:


window.setTimeout(function() {
jcepopup.open('impressum.html', 'Popup Title', '', '',);
}, 10000);

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#109832
Sorry, now it has. But it doesn´t make a difference, it is still fullpage.
more than a month ago
·
#109834

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#109835
Many thanks. With this version it works :D You can take a look.
Ryan marked this post as Resolved — 1 year ago
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!