Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-11-2011, 06:06 PM   #1
Mamassita
Confirmed User
 
Join Date: Nov 2009
Posts: 252
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

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!
Mamassita is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2011, 06:13 PM   #2
ThatOtherGuy - BANNED FOR LIFE
So Fucking Banned
 
Industry Role:
Join Date: Apr 2011
Posts: 1,241
self.close

Perhaps
ThatOtherGuy - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.