Debt Consolidation - Barbara Boxer - Free MP3 Downloads - vBulletin - Debt Consolidation

PDA

View Full Version : Any JavaScript Gurus Able to Help With A Lightbox?


adammiller
Oct 22nd 2008, 12:10 pm
Hey guys,

My JavaScript is poor so go easy! I'm implementing a lightbox2 popover. I want to display a seperate page in the lightbox after a specified delay (in seconds).

I'm trying to build a function to call using the html body onload... so far I've got this...


function load()
{
window.setTimeout(showlightbox(),8000);
}
function showlightbox()
{
location.href = "pop.html" rel="lightbox" title="Pop";
}


...obviously it doesnt work :D

Anyone got any pointers?

Cheers

rhoula
Oct 22nd 2008, 10:48 pm
Can you please send a link to a website where I see an example of what you are talking about.
I will be more than happy to help you.
Have a great day.

adammiller
Oct 23rd 2008, 12:59 am
Thats the problem, I havent seen anyone using lightbox2 to display another page with a delay.

http://www.huddletogether.com/projects/lightbox2/ has examples of how the lightbox is used, but I need to find out how to make the lightbox display another page (needs to be called with 'rel="lightbox"' and be able to set a delay).

Thanks for your reply.