Execute only one time and then wait set period of time before executing again
PHP Snippet 1:
<?php
if(isset($_COOKIE['yourCookieName'])){
//Do nothing
} else {
$cookie_name = "yourCookieName";
$cookie_value = "set";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
?>
//Break out of php and run your javascript here
<?php
}
?>