🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
1 messages
1 total messages Started by hazet Thu, 07 Oct 2010 17:38
Przejścia zakładek co 4s w jQuery
#50326
Author: 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
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