Olá pessoal
Estou com uma duvida. Gostaria de colocar um timer na minha página, que medisse o tempo restante que ele tem logado. Estou seguindo o exemplo desse script de um site que achei interessante. Por exemplo: quando o usuario me fizer um cadastro, ele ganha 5 horas grátis. Porém quando eu formato a maquina o tempo é restaurado ao original. Que arquivo especificamente esse java gera pra gravar essas informaçoes? Java Applet Trial Check é o nome do java que checa isso.
Grande abraço e aguardo resposta.
<script>
window.onload = function() {
document.pageLoaded = 1 ;
};
function java5Tester(java5ok) {
if ( java5ok ) {
showDiv('mj',1) ;
showDiv('mjwjre',0) ;
}
else {
showDiv('mj',0) ;
showDiv('mjwjre',1) ;
}
}
var timerId = 0;
var showCount = 0 ;
function showDiv(name , show) {
++showCount ;
document.getElementById(name).style.display = (show ? "inline" : "none") ;
clearTimeout( timerId );
}
function timeoutShow() {
if ( showCount == 0 ) {
showDiv("mjwjre" , 1) ;
}
}
timerId = setTimeout( "timeoutShow()", 5000 );
</script>
<APPLET CODE='com.fontec.megasite.applets.Java5Tester' codebase='/applets/' archive='java5tester.jar' name='Java5Tester' width='1' height='1' MAYSCRIPT></APPLET>
<div id='mj' style='display: inline;'>
<applet code='com.fontec.megasite.applets.SiteAppletTrialCheck' codebase='/applets/' archive='trialcheck.jar' name='SiteAppletTrialCheck' width='170' height='30'>
<param name="download_link" value="http://www.br/?page=download/download"/>
<param name="trial_check_link" value="http://www.br//download/trialcheck.jsp?"/>
<param name="brand" value="LOCALE_WWWBR">
</applet>