GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Javascript help needed (https://gfy.com/showthread.php?t=1022154)

Mamassita 05-11-2011 06:06 PM

Javascript help needed
 
I want the page to close automaticly after 10 seconds, without clicking on close button, but seem i can't figure it out :disgust

PHP Code:

<script type="text/javascript">
/** 
 * Number of seconds the video is accessable 
 * without clicking continue after submitting
*/
var seconds_to_expire 10
//-----------------------------------------------
var baseurl '{$baseurl}'
var video_id '{$videox}'
var video_title '{$titlex}'
{literal}
// Set Valid Cookie Value and Redirect back to this page
function clickToContinue(){
    
Set_Cookie'Private-Video'video_id'/''''' )
    
parent.window.document.location baseurl '/video/' video_id '/' video_title 
}
// Set Cookie
function Set_Cookienamevaluepathdomainsecure ){
    var 
expires seconds_to_expire 1000
    
var today = new Date();
    
today.setTimetoday.getTime() );
    var 
expires_date = new Datetoday.getTime() + (expires) );
    
document.cookie name "=" +escapevalue ) +
    ( ( 
expires ) ? ";expires=" expires_date.toGMTString() : "" ) +
    ( ( 
path ) ? ";path=" path "" ) +
    ( ( 
domain ) ? ";domain=" domain "" ) +
    ( ( 
secure ) ? ";secure" "" );
}
{/
literal}
</script> 

Any ideas ??

Thanks!

ThatOtherGuy - BANNED FOR LIFE 05-11-2011 06:13 PM

self.close

Perhaps


All times are GMT -7. The time now is 03:57 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123