lightbox

Trigger Lightbox onLoad w/ Delay

浪尽此生 提交于 2019-12-13 18:19:23
问题 Does anyone familiar with Lightbox2 (http://www.huddletogether.com/projects/lightbox2/) know how to trigger a lightbox onLoad and preferably with a 1 minute delay? 回答1: I used some info from another SO post to simulate the click event: Trigger an event with Prototype Get the code from event.simulate.js and include a reference in your file. <script src="js/simulate.js" type="text/javascript"></script> Add an id to the anchor link you want to auto-fire: <a href="images/image-1.jpg" id="openLink

php, jQuery, Lightbox, Ajax GET and POST issue

假如想象 提交于 2019-12-13 08:58:22
问题 I have a form in a lightbox (fancybox). I am trying to do an ajax get to run an update to the database. But I do not know why it does not work. The code below is what is in the lightbox: <div id="timezonelightbox"> <div class="lightboxtitle">Select Time Zone</div> <form method="get" action="" > <select name="timezones" id="timezones" class="selecttimezones"> <option value="Africa/Abidjan ">Africa/Abidjan </option> <option value="Africa/Accra ">Africa/Accra </option> <option value="Africa

Lightbox display multiple images from directory

谁说胖子不能爱 提交于 2019-12-13 08:48:38
问题 I can not find an answer(that works) to this anywhere on the web. I am trying to get Lightbox to load images from a directory as they will be frequently updated. If anyone can correct what I'm doing wrong, or has a solution using either PHP or a hidden div populated automatically by a specific directory it would be greatly appreciated. Here is what I have come up with but is not seeming to work; <?php $dirname = "img/love/"; $images = glob($dirname."*.jpg"); foreach($images as $image) { echo

How to open a lightbox on page load if url equals using google tag manager

会有一股神秘感。 提交于 2019-12-13 07:52:32
问题 The title pretty much says it. I would like to show a lightbox on page load only if the url is www.example.com/#popup versus www.example.com If this could be accomplished with google tag manager that would be grand I've see bits and pieces of this but I'm having trouble piecing it all together. HTML: <a href="#" data-featherlight="#mylightbox">Open element in lightbox</a> <div id="mylightbox">This div will be opened in a lightbox</div> 回答1: if (window.location.hash == "#popup") { $

How to disable lightbox for my gallery and open each thumbnail photo in the main frame instead?

怎甘沉沦 提交于 2019-12-13 06:35:19
问题 I would like to disable the lightbox effect for my product's gallery. And I would like to open each thumbnail photo in the main image container instead. (#wsite-com-product-images-main-image) Is there an easy way to accomplish this? Here is the link to my page: http://poloniafoods.weebly.com/store/p9/Meat_Pierogies_%28400g%29.html Thanks in advance, Justin. 回答1: It's coded in the design of the Theme. EDIT The default behavior would be that the thumbnail image that is clicked, would replace

Deciding between form confirmation methods

我与影子孤独终老i 提交于 2019-12-13 04:57:45
问题 So I originally wanted to create a form that generated a lightbox ON successful submission of the form data saying thanks for submitting the form but I read that just taking the user to a thank you page was the safest and most assuring way for the user to be notified is with that classic method stated earlier. IF using the fancy box proves effective how exactly would I go about doing this? Where would the call for the javascript go? In the PHP or the HTML file the form is on? Since the page

Nivo Lightbox notopening on an iPhone, but does work on iPad

 ̄綄美尐妖づ 提交于 2019-12-13 04:41:17
问题 Here is a URL with images that you can test this out on: http://www.imageworkshop.com/2013/06/19/dance-performer-promo-photography/ To be clear - at one point, all these images were opening on my iPhone in the Nivo lightbox. But it has been inconsistent. For a while, some blog post images would open, others would not. At present, none of them seem to be opening in the nivo lightbox on the iPhone - it is however, working on the iPad?! The following code in my header is relevant to the Nivo

Open lightbox link outside of iframe window

早过忘川 提交于 2019-12-13 04:35:32
问题 I have an iframe in which are some photo links. I'm trying to enable the lightbox to go the parent to display the photos but at the moment it is confined to within the iframe itself. I tried using <base target="_parent" which works for navigating links doesn't seem to work for lightbox. The lightbox I am using is jQuery based. NyroModal v2 :: jQuery Plugin. I have searched google and found one apparent solution on windows-addict.com but it doesn't work. I even switched the the exact same

Angular lightbox: Can't bind to 'data-lightbox' since it isn't a known property of 'a'

我只是一个虾纸丫 提交于 2019-12-13 04:04:39
问题 I read Angular. It says if you want to bind a property it should be wrapped with []. So here what I did, But I am getting error. Any idea what am I doing wrong? My requirement is to have the value of data-lightbox is what I am setting/sending from another component(parent component) image-display.component.ts @Component({ selector: 'app-image-display', templateUrl: './image-display.component.html', styleUrls: ['./image.component.css'] }) export class ImageDisplayComponent implements OnInit {

Error: Permission denied to access property '$' - iFrame

浪子不回头ぞ 提交于 2019-12-13 03:59:47
问题 I have a problem using an iFrame in an Bootstrap Modal. Its a News System, and i load the News Content from an iFrame from another Subdomain. Everything works fine, if a user clicks on an Image from the any news item, i want to open a Lightbox (Fancybox) in the Parent Window. Thats normally not the problem, i am using something like this: // so i know its an Popup / has an iFrame (class Popup is when it is opened in an BS Modal) - otherwise ill go to my news size and show the article there. $