🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
2 messages
2 total messages Started by zlotowinfo Sat, 03 Jul 2010 09:58
div autochowanie po pokazaniu
#50162
Author: zlotowinfo
Date: Sat, 03 Jul 2010 09:58
17 lines
1405 bytes
pokazuje element poprzez show
a gdy już się pokaże chciałbym by się schował po 30 sekundach

jak to zrealizować?



używam 3 funkcji

function Hide(d){if (d.length < 
1)return;document.getElementById(d).style.display = "none";}
function Show(d){  if (d.length < 1)    return; 
document.getElementById(d).style.display = "block";}
function Rev(d){  if (d.length < 1)    return;  if 
(document.getElementById(d).style.display == "none")  { 
document.getElementById(d).style.display = "block";  }  else  { 
document.getElementById(d).style.display = "none";  }}
Re: div autochowanie po pokazaniu
#50163
Author: NKAB -
Date: Mon, 05 Jul 2010 07:05
31 lines
1657 bytes
zlotowinfo <usuntousun@go2.pl> napisał(a): 

> pokazuje element poprzez show
> a gdy już się pokaże chciałbym by się schował po 30 sekundach
> 
> jak to zrealizować?
> 
> 
> 
> używam 3 funkcji
> 
> function Hide(d){if (d.length < 
> 1)return;document.getElementById(d).style.display = "none";}
> function Show(d){  if (d.length < 1)    return; 
> document.getElementById(d).style.display = "block";}
> function Rev(d){  if (d.length < 1)    return;  if 
> (document.getElementById(d).style.display == "none")  { 
> document.getElementById(d).style.display = "block";  }  else  { 
> document.getElementById(d).style.display = "none";  }}
> 

W wielkim skrócie:
      var time = setTimeout("Hide(d)", 30000) // 1000 = 1 sekunda
                ------------
więcej w Google.

Andrzej.


-- 
Wysłano z serwisu Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads