🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50326

Przejścia zakładek co 4s w jQuery

#50326
From: hazet
Date: Thu, 07 Oct 2010 17:38
25 lines
1522 bytes
Witam,
mam skrypt zakładek w jquery:

$().ready(function()
	{
	$("ul#bookmarks li a").click(function()
	{
		$("ul#bookmarks .active").removeClass("active");
		$(this).parent().addClass("active");
		var element_index = $("#bookmarks a").index(this);
		$("#bookmarks_content div:visible").hide();
		$("#bookmarks_content div").eq(element_index).show();
		return false;
	});
	});



Jak go zmienić aby zakładki zmieniały się same (auto-play) co 4 sekundy 
z efektem "przejścia" ???
Czy jest to kwestia paru linii kodu, ma ktoś pomysł, wiedzę na ten 
temat, gdyż w ogóle nie orientuje się w js a muszę to zrobić na jutro.

Proszę  o pomoc.
pozdrawiam
Technical Details
Message-ID: <i8l0j8$kdt$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: hazet <hazet@no-mail.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Przejścia zakładek co 4s w jQuery
Date: Thu, 07 Oct 2010 19:38:50 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 25
Message-ID: <i8l0j8$kdt$1@inews.gazeta.pl>
NNTP-Posting-Host: static-ip-77-89-75-190.promax.media.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1286473128 20925 77.89.75.190 (7 Oct 2010 17:38:48 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 7 Oct 2010 17:38:48 +0000 (UTC)
X-User: introw
X-Antivirus: avast! (VPS 101007-0, 2010-10-07), Outbound message
X-Antivirus-Status: Clean
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit