DMXzone Lightbox Support Product Page
Answered
open lightbox on page load
Asked 26 Nov 2012 08:12:01
2
have this question
26 Nov 2012 08:12:01 Rick Drew posted:
I looked at the examples - they don't work. Tried it in FF, IE and Chrome.I want a lightbox popup to open when the page loads.
Thx
Replies
Replied 26 Nov 2012 08:43:44
26 Nov 2012 08:43:44 Vulcho Vulev replied:
Hello Rick.
You need first to create link on your page.Apply Lightbox to it in order for Lightbox to place the needed scripts.
After that delete the link and create a new one through behaviors:
OnLoad>DMXZone>Open Lightbox.
If you execute everything correct your code will look like:
In my example i used LinkToYourSite.com
Regards:Vulcho.
You need first to create link on your page.Apply Lightbox to it in order for Lightbox to place the needed scripts.
After that delete the link and create a new one through behaviors:
OnLoad>DMXZone>Open Lightbox.
If you execute everything correct your code will look like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!--[if IE]><script type="text/javascript" src="dmx/lib/excanvas-compressed.js"></script><![endif]--> <link rel="stylesheet" type="text/css" href="dmx/widgets/Lightbox/styles/default/style.css" /> <script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script> <script type="text/javascript" src="dmx/dmx.core.js"></script> <script type="text/javascript" src="dmx/widgets/Lightbox/dmx.lightbox.js"></script> <script type="text/javascript"> function openDMXzoneLightbox(arg, options, context) {//v1.2 context = context || window, options = options || {}; if (context.DMX && context.DMX.Lightbox) { context.DMX.Lightbox.open(options.plugin || "", arg, options); document.MM_returnValue = false; } } </script> </head> <body onload="openDMXzoneLightbox('LinkToYourSite.com', {}, window);return document.MM_returnValue"> </body> </html>
In my example i used LinkToYourSite.com
Regards:Vulcho.
Replied 09 Apr 2014 14:44:52
09 Apr 2014 14:44:52 Jacques H replied:
Works only in FF and Chrome. Not in IE11. Works in IE11 in compatability mode only