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
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