lightbox

Why is my fancybox plugin not working for my youtube link?

℡╲_俬逩灬. 提交于 2019-12-12 02:27:18
问题 I cannot figure out why it isn't loading, it seems the same as fancybox's youtube link on their demo homepage. Plus, all the other fancyboxes on the page work. It's here and the one that isn't working is everybody's smoking video. Here is my html: <li class="portfolio-tn"> <a class="fancybox" title="A video I made whilst I was giving up smoking. Unfortunately the video tape reel got damaged and the film quality isn't great. " href="http://www.youtube.com/embed/NXzSX5Cbebw"> <img alt=

How to open links from inframe outside of it?

耗尽温柔 提交于 2019-12-11 23:20:12
问题 well I have that problem, im using a lightbox srcipt and im opening an iframe in it so it's simply iframe. Is there a way to put a link inside of this iframe and open this link in normal window (outside of iframe) ? 回答1: Use <a href="..." target="_top">My Link</a> to put it on top of all other frames (break out). _blank will put in a new window or tab _parent will put the link in the frame above the current (same as _top if only one level of frame) Using the name (not id) of a frame will open

wordpress. lightbox plugin error on apply_filter

泄露秘密 提交于 2019-12-11 22:40:47
问题 I use the plugin https://wordpress.org/plugins/show-post-in-lightbox/ to display all feautered image of every post on a page. whenver one of these images get clicked on a lightbox will appear showing the post content. This all works fine but the original code that display the content uses: if($_REQUEST['popup']!=''){ $postObj = get_post( $_REQUEST['pid'] ); echo $postObj->post_content; exit; } This works fine besides the fact that its not very need because wordpress cant format the html. also

disable closing popup when clicking on background

…衆ロ難τιáo~ 提交于 2019-12-11 21:04:26
问题 I use featherlight.js for lightbox. When it is opened and I click on it's background it cloeses popup. I need to disable this functionality. I noticed that this js has closeTrigger option in it but don't know how to use it. 回答1: There is a default option in it: closeOnClick: false /* Close lightbox on click ('background', 'anywhere', or false) */ Select "FALSE" value this will disable the closing of popup on clicking on background. 回答2: I would suggest not to write javascript snippet

getElementsByTagName setAttribute and regex javascript

扶醉桌前 提交于 2019-12-11 19:56:36
问题 i want to put rel=lightbox to some links that mediabox support using javascript. i try this and wonder why it's not working? test: http://jsbin.com/opica please help edit this: http://jsbin.com/opica/edit <script type="text/javascript"> var x=xmlDoc.getElementsByTagName("a"); var regexku=/^.+(((twit)|(tweet)|(com/video.+)|(flickr.com.+)|(tube.com.+))|((gif)|(jpe?g)|(png)|(flv)|(swf)|(mp3)|(mp4))$)/; for(i=0;i<x.length;i++) { a=x[i].getAttribute('href'); if (a.match(regexku) != null) { x.item

Fancybox iframe from Google Map V3 marker click

ε祈祈猫儿з 提交于 2019-12-11 16:45:09
问题 I have a Google Map (v3) that I am placing several markers into, and want to be able to click on the markers and pull up a Fancybox iFrame. I can't figure out how to pull the URL from the marker into Fancybox. I can see the Fancybox firing - the popup window appears breifly and then the link is pulled up as a new page over top of the current page. Here is a snippet of the relevant code: var sites = [ ['Mount Evans', 39.58108, -105.63535, 4, 'www.myurl-1.com'], ['Irving Homestead', 40.315939,

javascript: submit form in an iframe…help

限于喜欢 提交于 2019-12-11 16:24:23
问题 I can't believe I've never done this before.... Here's my situation: I am using 2 jQuery plugins. Shadowbox and validate (bassistance). I click on a link to sign up for a newsletter. The link opens a form in a shadowbox. No biggie. The form is validated with the plugin. When the form is validated and ready to submit, it doesn't. This is what my submitHandler option (in the validate plugin) looks like: submitHandler: function(form) { form.submit(); var s = window.parent.Shadowbox; s.open({

How to add a Lightbox to a custom DotNetNuke module

扶醉桌前 提交于 2019-12-11 16:14:38
问题 I'm working on a custom DotNetNuke module which requires the use of Lightbox. What's the best way to add the javascript necessary for Lightbox to a DNN module? Nearly all the solutions I've seen involve adding the javascript references to the skin file. Is there another way to accomplish this? I'd hate to have those javascript files being loaded even for modules which don't need them. ===================================================================== Thanks to spinon's help, here's the

Fancybox 2.0 Next and Previous Method for Gallery Mode

南笙酒味 提交于 2019-12-11 16:08:34
问题 I'm using Fancybox version 2.04 and a realize there are still a couple issues but I am trying to implement the next and previous methods to use the zoomIn ZoomOut functionality instead of the Default slide down (which I'm assuming is the slideDown and I do think is awesome). Here's the code I'm using but it isn't seeming to work, it closes the layer and doesn't progress to the next image in the gallery. $('.zoom').fancybox({ nextMethod: 'zoomIn', prevMethod: 'zoomOut', helpers : { overlay : {

jquery lightbox plugin while images are loaded via ajax

心已入冬 提交于 2019-12-11 16:03:58
问题 I have a page where I am loading bunch of images initially when the page loads. These images are tied to the lightbox plugin and when i click on the images..the plugin does do what it is supposed to. However, I have some ajax added via jquery (triggered by a drop down box) which updates the list of images based on what it gets from the server. After the list of images is reloaded the lightbox plugin does not seem to work anymore. Does anyone know if something special needs to be done?