Article View: pl.comp.lang.javascript
Article #50163Re: div autochowanie po pokazaniu
From: NKAB -
Date: Mon, 05 Jul 2010 07:05
Date: Mon, 05 Jul 2010 07:05
31 lines
1657 bytes
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/
Technical Details
Message-ID:
<i0s072$8ag$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<i0n1jl$dts$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "NKAB -" <nkab.SKASUJ@gazeta.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: div autochowanie po pokazaniu Date: Mon, 5 Jul 2010 07:05:07 +0000 (UTC) Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 31 Message-ID: <i0s072$8ag$1@inews.gazeta.pl> References: <i0n1jl$dts$1@inews.gazeta.pl> NNTP-Posting-Host: localhost X-Trace: inews.gazeta.pl 1278313507 8528 172.20.26.238 (5 Jul 2010 07:05:07 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Mon, 5 Jul 2010 07:05:07 +0000 (UTC) X-User: nkab X-Forwarded-For: 85.89.190.17 X-Remote-IP: localhost MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit