61,112
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script language="javascript">
$(document).ready(function(){
$('.newslist:eq(1)').css("display", "none");
$('.index_news_head > h1:eq(0)').css("color","red");
$('.index_news_head > h1:eq(0)').hover(
function(){
$(this).css("color","red");
$('.index_news_head > h1:eq(1)').css("color", "#000000")
$('.newslist:eq(0)').css("display", "block");
$('.newslist:eq(1)').css("display", "none");
}
,
function()
{
}
)
$('.index_news_head > h1:eq(1)').hover(
function(){
$(this).css("color","red");
$('.index_news_head > h1:eq(0)').css("color", "#000000")
$('.newslist:eq(0)').css("display", "none");
$('.newslist:eq(1)').css("display", "block");
}
,
function()
{
}
)
});
</script>
<div class="index_news_head"><h1>最新动态</h1><h1>网站设计</h1></div>
<div class="newslist">新中国首套广州城市题材邮票发布传展示动画</div>
<div class="newslist">新中国首套广州城市题材邮票发布传展1示动画</div>
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script language="javascript">
$(document).ready(function(){
$('.newslist:eq(1)').css("display", "none");
$('.index_news_head > h1:eq(0)').css("color","red");
$('.index_news_head > h1:eq(0)').hover(
function(){
$(this).css("color","red");
$('.index_news_head > h1:eq(1)').css("color", "#000000")
$('.newslist:eq(0)').css("display", "block");
$('.newslist:eq(1)').css("display", "none");
}
,
function()
{
}
)
$('.index_news_head > h1:eq(1)').hover(
function(){
$(this).css("color","red");
$('.index_news_head > h1:eq(0)').css("color", "#000000")
$('.newslist:eq(0)').css("display", "none");
$('.newslist:eq(1)').css("display", "block");
}
,
function()
{
}
)
});
</script>
<div class="index_news_head"><h1>最新动态</h1><h1>网站设计</h1></div>
<div class="newslist">新中国首套广州城市题材邮票发布传展示动画</div>
<div class="newslist">新中国首套广州城市题材邮票发布传展1示动画</div>