11/01/2011, 19:34
|
| | Fecha de Ingreso: mayo-2010 Ubicación: Argentina
Mensajes: 11
Antigüedad: 14 años, 5 meses Puntos: 0 | |
Ayuda JavaScript Time Hola,a todos bueno mi problema es que yo necesito desactivar ese script que es de "Time" pasa lo siguiente yo voto en la web y me aparece el cartel que tengo que esperar 12 hs para votar denuevo bueno yo queria saver si hay una forma de sacar esa espera o achicar el tiempo, si necesitan mas solo avisenme.
les dejo el JavaScript
Código:
function t(){
v=new Date();
var bxx=document.getElementById('bxx');
n=new Date();
ss=pp;
s=ss-Math.round((n.getTime()-v.getTime())/1000.);
m=0;h=0;
if(s<0){
bxx.innerHTML= "<a href='index.php'>Готово вече може да гласувате</a>"
}else{
if(s>59){
m=Math.floor(s/60);
s=s-m*60
}
if(m>59){
h=Math.floor(m/60);
m=m-h*60
}
if(s<10){
s="0"+s
}
if(m<10){
m="0"+m
}
bxx.innerHTML=h+" часа "+m+" минути "+s+" секунди"
}
pp=pp-1;
window.setTimeout("t();",999);
}
y aca va otro
Código:
<viewport xmlns='http://www.w3.org/1999/xhtml'
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
spellcheck="false" manifest="/app/stp-1/manifests/dragonfly-es-ES.manifest">
<link rel="icon" href="/favicon.ico" />
<base href="/app/stp-1/" />
<script><![CDATA[
(function()
{
// this code was added 10.02.2009
// it can be removed after some time
var
lang_dict =
{
/*
supported languages in Opera
*/
"be": "be",
"bg": "bg",
"cs": "cs",
"da": "da",
"de": "de",
"el": "el",
"en": "en",
"en-GB": "en",
"es-ES": "es-ES",
"es-LA": "es-LA",
"et": "et",
"fi": "fi",
"fr": "fr",
"fr-CA": "fr-CA",
"fy": "fy",
"hi": "hi",
"hr": "hr",
"hu": "hu",
"id": "id",
"it": "it",
"ja": "ja",
"ka": "ka",
"ko": "ko",
"lt": "lt",
"mk": "mk",
"nb": "nb",
"nl": "nl",
"nn": "nn",
"pl": "pl",
"pt": "pt",
"pt-BR": "pt-BR",
"ru": "ru",
"sv": "sv",
"ta": "ta",
"te": "te",
"tr": "tr",
"uk": "uk",
"zh-cn": "zh-cn",
"zh-tw": "zh-tw",
},
setCookie = function(key, value, time)
{
document.cookie = (
key + "=" + encodeURIComponent(value) +
"; expires=" +
( new Date( new Date().getTime() + ( time || 360*24*60*60*1000 ) ) ).toGMTString() +
"; path=/");
},
getCookie = function(key)
{
var value = new RegExp(key + "=([^;]*)").exec(document.cookie);
return value && decodeURIComponent(value[1]);
},
lang = lang_dict[navigator.browserLanguage] || 'en',
ui_lang = getCookie('ui-lang'),
ui_lang_set = getCookie('ui-lang-set');
if( !ui_lang_set && ui_lang && ui_lang != lang )
{
setCookie('ui-lang', lang);
location.reload();
}
})();
]]></script>
<title>Opera Dragonfly</title>
<windows-container></windows-container>
<main-view></main-view>
<script><![CDATA[
window.load_screen_timeout = window.setTimeout(function()
{
var main_container = document.getElementsByTagName('main-view')[0];
if (main_container && !main_container.childNodes.length)
{
main_container.innerHTML = "<div style='position:absolute; \
width:500px; \
top:50%; \
left:50%; \
margin-top:-90px; \
margin-left:-250px; \
text-align:center;'> \
<h1 style='height:100px; \
line-height:100px; \
margin:0; \
padding:0; \
color:#ccc; \
background-color:#fff; \
font-family:sans-serif; \
font-weight:normal !important; \
font-size:30px !important; \
text-align:center;'>Loading Opera Dragonfly</h1> \
<img src='data:image/gif;charset=utf-8;base64,R0lGODlhQwBCAIABAMzMzP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAAABACwAAAAAQwBCAAAC54yPqcvtD6OctNqLs968+w+G4kiW5ok6wJp668u2GUzLF13bFQ7rO//yTYBBYYQYMz6QSSWD2XQmoFGpgVqVYrMk3mKbgk6pKPAVey66toA0M4ADsVlz9bpeF+Hz+r155PdWFgjUQuhleNiTqNhm0+j4qKgU6FQpRIjZg6eTwymTA/c5aPdGRFqFJIpYEopgWti1+HW6GtdnpwAb++H6VKt6xzUGzLvhq1Jri2zB3CAYjOGczBv9kythrUwxDbG9PDuEfX17YHw0To7Mmj2sPl6OHsJObAVu792N7xa5/5zu71W/gCYKAAAh+QQFAAABACwAAAAAQwBCAAAC6oyPqcvtDyOYsdqrJsW8M715IgeG4ymVAMo+6tqO2qfG8pzVtlfm+o75GV4w4OWFIBqDQuXS4hwKn64oklqxTrENIuzKrV6jYZqSXPaNt+mkN4BuH7yruBz+tt/peLacr9dG99ZnUjZ41iOIyPjHiLj3yOcoGUhV6ReGOZm2ycnlCQka+vhEuml62rijitmCqoqi2Hh6olj4iSpyiysqtdrB+ytpJnwEshB6iVxcuWSs5mwDnewZQ92la8tM4nqDsysdzC1b2g0+7ZtFbvQJgf2M/s5+ByVfv26In7/f3f8PMKDAgQQLGnxQAAA7'/>";
}
}, 750);
]]></script>
<link rel="stylesheet" href="./style/dragonfly.css"/>
<script src="./script/dragonfly-es-ES.js"/>
<body/>
</viewport>
Última edición por Lecom; 11/01/2011 a las 20:59 |