20600f25 by 任超

style:新闻

1 parent 3bf69fb8
......@@ -109,6 +109,11 @@ function NewsData() {
// }
// });
if ($('#ulNews li').eq(0).attr('url')) {
$('.news-img img').attr('src', $('#ulNews li').eq(0).attr('url'));
} else {
$('.news-img img').attr('src', './staticImages/news_demo.jpg');
}
$(document).on("mouseover", "#ulNews li", function (e) {
if ($(this).attr('url')) {
$('.news-img img').attr('src', $(this).attr('url'));
......