What I want to be able to do is to display this div with Lightbox but do it from JavaScript. For example, from the body onLoad event I would like to call a JavaScript function that opens a Lightbox.
Then, the Lightbox is going to contain a few fields so I was going to have JavaScript validate that the user entered all the fields. If they did, I then want to close the Lightbox. If they did not, I will display an alert message. I can get all of this to work except having JavaScript close (actually, it is hiding) a Lightbox div. Can someone help me figure out how to hide the div from a JavaScript function?
What I downloaded was Lightbox Gone Wild which I think is also called Leightbox.
I have multiple parent sections on the page. Each section has 3 child sections. Each parent toggles open and closed. and within each section there are buttons to toggle the children open and closed.
In the case of both the parents and their children, when a parent is toggled open I want the other parents to toggle closed . The same applies to the children of each parent. I want to close all the other open children when a child is toggled open. Rather like some accordions - which I can not use for this function. This way there is only one parent and one child open at any time
Because of the number of parents and children on the page I can not use Ids. All are designated by classes
1) I'm using a lightbox script (namely URl... but I don't think that matters in this case).
2) Since the lightbox scripts appears to intercept the 'onclick' event, I have to use 'onmouseup' to call the ajax, which is not a problem, just a note.
3) My link is: <a title="Click to View Logo" onmouseup="getLogo('44');" href="#displayimage" rel="displayimage" class="lbOn">
4) The javascript function 'getLogo' calls an ASP page which then feed the logo back to a div with ID "displayimage"
5) I have tried to add the following code to the ASP page to close the lightbox, but it does not work: <a href="#" class="lbAction" rel="deactivate"><img src="_images/button_close.png" /></a>
6) If I add the code above to the page itself (rather than from the ajax call), it successfully closes the lightbox, so I know the code itself is fine
Can I use the lightbox to call multiple DIV tags? Since the ajax call loads the content of the ASP page into the div (replacing what may have been there of course), I cannot place the "close" script into the "displayimage" div.
I have seen this script a few places, not sure it was jquery but I figured it was.
I am looking for a script that opens a lightbox when someone moves the mouse over to close the browser window or change the url or type in the search bar, a lightbox pops up.
I spend a bit of time searching and can't find the script.
Trying to learn the basics... Here is a script for three toggle buttons that each when clicked open their corresponding divs. Fine. Now how does one go about automatically closing an open div when clicking on a new 'toggler' that opens it's div? I see other posts about this very question, but I'm just not grasping the logic.
How can we open a flv file using the lightbox? I am using the following code <a href="[URL]" class="lightwindow">Link Name</a> But the browser still downloads the file instead of showing it in lightbox. One more thing...is it possible to display some text along with this video in the lightbox?
It is a small search engine, when you press on search, it has to open a lightbox with the results, but i do not know how to target the lightbox.code...
Can I get javascript to open a window and close it, without a user seeing it? Basically, I want to open a site, so it downloads and sets a cookie before I display a link for a user to click on.
I'm running a bat file that runs a php script, that backs up my db.
Problem is that I'm limited by the functions I can use as I'm on a winXP box and dont want to compromise security.
The function I'm left with means I should run the script from a browser as it echoes out the results. At this point I'm not opening a browser so it is creating a few problems.
To get around this I thought I might be able to use js. But, I've been testing with a script I hacked (and I mean hacked, its probably a mess).
4 problems: 1. its trying to download a file 2. still has a pop-up asking if its ok to close window 3. its not displaying the php file 4. even if I click the 'go back' link it still asks if it should close.
I will enclose the php script I'm running from bat file in the hopes some-one will kindly put it all together for me For testing I've just been running (trying to include, not download, as I'm getting now) a small php script that says 'hello world' Code:
I want the lightbox window open only once a day for every unique visitor on my website. I understand I should use some sort of cookie implented, but I dont really understand how to.
client wants for a window with no toolbars to open (technical and 'esthetical' reasons) after the window, user clicks on, is being closed.
I told them about security settings in browsers and no cross-browsers solutions and all of that we know, but they have told me they have seen that before and how then the annoying pop-up windows work? . . .