lightbox

lightbox 2: how to add dynamically images via javascript

那年仲夏 提交于 2019-12-04 05:12:49
问题 I'm having trouble attempting to dynamically add images , since lightbox2 (by lokesh dakar) is initialized after document load by existent html coded images and it doesn't parse the document anymore after the first time. If i try to add new images with javascript (appending them in the body for example) they are not added to the lighbox groups. Documentation in official website doesn't seems to describe any scripted method Anyone with experience can help me? solution with jquery are really

Passing data to Bootstrap Modal without JavaScript

你。 提交于 2019-12-03 21:46:43
I have a grid with image links on my page. When clicking one of them a modal should pop up with the image but in big format. Now I'm trying to achieve this without the use of javascript/jquery but just with data-attributes. At the moment I have this code: <!-- Generating the image link with PHP (laravel) --> <a data-toggle="modal" href="#myModal"> {{ HTML::image("img/$photo->Link", "$photo->Title", array("class"=>"thumbnail col-md-3")) }} </a> <!--The modal --> <section class="row"> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden=

Scriptaculous / Prototype modal window

北城以北 提交于 2019-12-03 20:49:55
I would like to make a modal window using prototype and scriptaculous. I was wondering if there is any site that has a tutorial or if anyone could kinda give me some idea where to start. (I don't want a prebuilt one) thaddeusmt In addition to Control.Window, here are some others I have found: http://okonet.ru/projects/modalbox/index.html (very nice, and free) http://prototype-window.xilinus.com/download.html (looks pretty good) http://dzone.com/snippets/javascript-dialog-box-based (not packaged, just a code snippet) http://www.nickstakenburg.com/projects/lightview/ (slick! but not free) More

Extend Fancybox inside an iFrame to outside

萝らか妹 提交于 2019-12-03 17:21:56
I got stuck in a problem here. I have a fancybox inside an iFrame, and it works normally, but I need it to extend outside the iFrame so it can fill the whole screen (I mean extend to it's parent). Does anybody knows how to do that? If both the page and the iframe are in the same domain, you can open the fancybox window in the parent from inside the iframe. Check out the demo . Parent Window (contains fancybox script, css and iframe) <iframe src="child-page.htm" height="250" width="500"></iframe> Child Page (contains script to call fancybox in the parent) $('a').click(function() { // target the

ASP.NET MVC Login Modal Dialog/lightbox

偶尔善良 提交于 2019-12-03 14:15:35
问题 I was hoping to create a lightbox/modal dialog for login into my website which is built with asp.net mvc. However the only way i can think of is to put logic into the onClick events for the hyperlinks when linking to restricted sections. I would prefer it so I could still use the Authrisation action filter, and when you click on a link to a action method which requires authrisation it would show the lightbox/modal dialog before proceding on to the actual link. The reason for this is i don't

Lightbox to show videos from Youtube and Vimeo? [closed]

Deadly 提交于 2019-12-03 10:30:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm looking for a lightbox to show videos from Youtube and Vimeo. Any suggestions? 回答1: Check out Fancybox. If you need the video to

best jquery-based lightbox / popup dialogbox?

允我心安 提交于 2019-12-03 09:42:28
i'm looking for a jquery-based popup dialog box that we will use for : displaying static content pages (terms of use, etc) the contact us page (already uses the jquery form plugin for ajax submit) displaying full-size for photo thumbnails. can anybody recommend one that can fulfills all the above and that is rather lightweight and easy to use ? thanks in advance. I use Fancybox - http://fancybox.net/ Handles pretty much any kind of content, rather easy to use and configure, and should work in most browsers. Needs a little fix for IE8 though I think, but you can find that on the site or google

How to make a jquery lightbox open multiple images from one link?

社会主义新天地 提交于 2019-12-03 07:32:37
问题 Using a lightbox like ColorBox or jQuery Lightbox Plugin how can i make a single link which opens a gallery / array of images? For example i have 1 thumbnail and when a user clicks it i want it to open multiple pictures in the lightbox so the user can click next or previous to view all the pictures within that gallery. My thinking was that i just do it as normal 1 link to 1 picture then use jquery to hide all but the first link. There must be a better way? Thanks. 回答1: Here is the proper (

ASP.NET MVC Login Modal Dialog/lightbox

拜拜、爱过 提交于 2019-12-03 04:07:11
I was hoping to create a lightbox/modal dialog for login into my website which is built with asp.net mvc. However the only way i can think of is to put logic into the onClick events for the hyperlinks when linking to restricted sections. I would prefer it so I could still use the Authrisation action filter, and when you click on a link to a action method which requires authrisation it would show the lightbox/modal dialog before proceding on to the actual link. The reason for this is i don't want preform the repetive task of having to remeber to put in the events for the links. The only way to

Is there a VERY light-weight lightbox available? [closed]

孤人 提交于 2019-12-03 02:25:20
I'm looking for an extremely light-weight lightbox for jQuery. i'm trying to create my own but i suck and my fist is about to go through the screen.... i'm talking like 5kb or less.. i know it can be done, and if i knew what i was doing i'd do it... but i'm just done for the day. So, does anyone know of one? something just for images, and nothing else, no fancy crap, no extra weight, one that simply centers the lightbox in the center of the screen with whatever picture was loaded by the link. There are many options. Check out Rounding Up the Top 10 jQuery Lightbox Scripts . 9KB light enough? I