Jump to content

Turn timed Pop up into Link Pop up


curt3006

Recommended Posts

Hello,  I have a pop up on a timer that I would like to set to a link.  So instead of this popping up after a certain amount of time, it pops up when someone clicks on a link.

 

Here's the code:

<link rel="stylesheet" media="screen" href="css/colorbox.css" />

 

<script src="js/jquery.js" type="text/javascript"></script>

 

<script src="js/jquery.colorbox-min.js" type="text/javascript">

</script>

 

 

 

<script>

setTimeout('openPopUp()',20000);

function openPopUp()

{

    $.fn.colorbox({href:'popup.html',overlayClose:false,open:true,width:590,height:670,iframe:true});

}

</script>

 

Any help would be greatly appreciated!

Link to comment
https://forums.phpfreaks.com/topic/223649-turn-timed-pop-up-into-link-pop-up/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.