我有这段代码,效果很好,唯一的问题是在最后一个引号被使用后,它会在几秒钟内显示一个空的 div,然后再从头开始。所以,我的问题是如何在使用最后一个引号后直接跳回第一个引号。谢谢你。(您可以在 mapsbyphil dot com 上查看实际情况)。
<div id="container">
<div>
<p><b>"The early days of GIS were very lonely. No-one knew what it meant."</b><br><a href="http://en.wikipedia.org/wiki/Roger_Tomlinson" target="_blank">Roger Tomlinson</a>, Father of GIS</p>
</div>
<div>
<p><b>“GIS is a form of digital mapping technology. Kind of like Google Earth, but better.”</b><br><a href="http://en.wikipedia.org/wiki/Arnold_Schwarzenegger" target="_blank">Arnold Schwarzenegger</a>, Conference on California's Future 2008</p>
</div>
<div>
<p><b>“I am told there are people who do not care for maps, and I find it hard to believe.”</b><br><a href="http://en.wikipedia.org/wiki/Robert_Louis_Stevenson" target="_blank">Robert Louis Stevenson</a></p>
</div>
<div>
<p><b>“Everything is related to everything else, but near things are more related than distant things.”</b><br><a href="http://en.wikipedia.org/wiki/Tobler%27s_first_law_of_geography" target="_blank">Tobler's First Law of Geography</a></p>
</div>
<div>
<p><b>"It is not down in any map; true places never are."</b><br><a href="http://en.wikipedia.org/wiki/Herman_melville" target="_blank">Herman Melville</a></p>
</div>
<div>
<p><b>"They were maps that lived, maps that one could study, frown over, and add to; maps, in short, that really meant something.” </b><br><a href="http://en.wikipedia.org/wiki/Gerald_Durrell" target="_blank">Gerald Durrell</a></p>
</div>
<div>
<p><b>“I get to go to overseas places, like Canada.” </b><br><a href="http://en.wikipedia.org/wiki/Britney_Spears" target="_blank">Britney Spears</a></p>
</div>
<div>
<p><b>“I like geography. I like to know where places are.” </b><br><a href="http://en.wikipedia.org/wiki/Tom_Felton" target="_blank">Tom Felton</a></p>
</div>
<div>
<p><b>"I have no idea where Italy is on the map, but I do know what shape it is, and its like a boot." </b><br><a href="http://en.wikipedia.org/wiki/Snooki" target="_blank">Snooki</a></p>
</div>
<script type="text/javascript">
function InOut(elem)
{
elem.delay()
.fadeIn(600)
.delay(5000)
.fadeOut(600,
function(){
if(elem.next().length > 0)
{ InOut(elem.next()); }
else
{ InOut(elem.siblings(':first')); }
}
);
}
$('#container div').hide();
InOut($('#container div:first'));
</script>