In my web application I'm using the Lightbox v2 by Lokesh Dhakar. Now i want to refresh image in lightbox every second.
Note: Lightbox is trigered by:<a href="screenshot.jpg" rel="lightbox"><img src="images/Screenshot.png" alt="" /></a>
.
In my web application I'm using the Lightbox v2 by Lokesh Dhakar. Now i want to refresh image in lightbox every second.
Note: Lightbox is trigered by:<a href="screenshot.jpg" rel="lightbox"><img src="images/Screenshot.png" alt="" /></a>
.
This is javascript. There are two ways to do this - all in js or via ajax.
I suggest js and load images on page load (depends how many you have). Is one per second a bit extreme?
s - all in js or via ajax
Can you please show me a example? i want to refresh image in lightbox only
I could, but that's quite a bit of time and effort, which I don't have at the moment.
How about searching for a solution?
http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/ ??
I did it before...Simulate click on a href lightbox with timer...but its not looking very good because the whole lightbox is flashing i need just refresh picture in it not whole lightbox.
Unless you post your code, we can't help. We're just speculating as to what your issues are. In addition, as this will probably be a js issue, you may be better off posting to the JS forum. However, see where the issue lies - PHP or JS.
its not my code i just want to modificate Lokesh Dakar's Lightbox v2 code: http://lokeshdhakar.com/projects/lightbox2/releases/lightbox2.51.zip
You aren't seriously asking us to download a zip file and wade through loads of code are you? If so, I think you misunderstood the nature of this forum. This is not me being shirty, just telling you that we're all volunteers and have limited time to try to help individuals like you. Somebody here may have the time, most of us won't.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.