Witam, jak w temacie: zapłacę za gotowe źródło skryptu wyświetlającego rozsuwane menu (kolejno pokazującego elementy każdy po upływie ilus milisekund - siedze juz nad tym dlugo i nie umiem tego zrobic, jedno co mi sie udalo to wyswietlanie wszystkich elementow po pewnym czasie. Dziękuję za pomoc, strona ze skryptem znajduje się pod adresem
http://www.iguana999.nazwa.pl/witek/demo/20, a tak wygląda kod:
<style type="text/css">
<!--
a.cat {
display: block;
background: url(images/dot.gif) left 12px no-repeat;
padding: 6px 16px;
white-space: nowrap;
}
a.cat:hover{
background: url(images/dot.gif) 4px 12px no-repeat;
text-decoration: none;
}
td.boxText ul{
list-style-type: none;
padding:0;
margin:0;
margin-left:10px;
}
-->
</style>
<script language="JavaScript">
var szybko=true;
var timeoutID;
function switchid(id){
hideallids();
showul(id-1,"block");
return false;
}
function hideallids(){
//loop through the array and hide each element by id
for (var i=0;i<ids.length;i++)
showul(i,"none");
}
function showul(id,value) {
//safe function to show an element with a specified id
for (var j=0;j<ids2[id];j++)
timeoutID = window.setTimeout("showul2(\""+(id+1)+'_'+j+"\",\""+value+"\")", 1000);
return false;
}
function showul2(id,value)
{
if (document.getElementById) // DOM3 = IE5, NS6
document.getElementById(id).style.display = value;
else
if (document.all)
document.all[id].style.display = value;
}
</script>
<ul id="1">
<li id="1_0"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=17">CDROM Drives</a></li><li id="1_1"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=4">Graphics Cards (2)</a></li><li id="1_2"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=8">Keyboards (1)</a></li><li id="1_3"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=16">Memory</a></li><li id="1_4"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=9">Mice (2)</a></li><li id="1_5"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=6">Monitors</a></li><li id="1_6"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=5">Printers (1)</a></li><li id="1_7"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=7">Speakers</a></li></ul>
<a class="cat" onclick="return switchid(2)" href="http://www.free-store-templates.com/demo/20/index.php?cPath=2">Software (4) »</a>
<ul id="2">
<li id="2_0"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=19">Action (1)</a></li><li id="2_1"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=18">Simulation (1)</a></li><li id="2_2"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=20">Strategy (2)</a></li></ul>
<a class="cat" onclick="return switchid(3)" href="http://www.free-store-templates.com/demo/20/index.php?cPath=3">DVD Movies (17) »</a>
<ul id="3">
<li id="3_0"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=10">Action (9)</a></li><li id="3_1"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=13">Cartoons (1)</a></li><li id="3_2"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=12">Comedy (2)</a></li><li id="3_3"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=15">Drama (3)</a></li><li id="3_4"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=11">Science Fiction (1)</a></li><li id="3_5"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=14">Thriller (1)</a></li></ul>
<script language="JavaScript">
var ids
=new Array(1
, 2
, 3
); var ids2
= new Array(8
,3
,6
); var szybko=switchid(0);
// alert('szybko: '+szybko);
</script>