style:新闻
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -109,6 +109,11 @@ function NewsData() { | ... | @@ -109,6 +109,11 @@ function NewsData() { |
109 | // } | 109 | // } |
110 | // }); | 110 | // }); |
111 | 111 | ||
112 | if ($('#ulNews li').eq(0).attr('url')) { | ||
113 | $('.news-img img').attr('src', $('#ulNews li').eq(0).attr('url')); | ||
114 | } else { | ||
115 | $('.news-img img').attr('src', './staticImages/news_demo.jpg'); | ||
116 | } | ||
112 | $(document).on("mouseover", "#ulNews li", function (e) { | 117 | $(document).on("mouseover", "#ulNews li", function (e) { |
113 | if ($(this).attr('url')) { | 118 | if ($(this).attr('url')) { |
114 | $('.news-img img').attr('src', $(this).attr('url')); | 119 | $('.news-img img').attr('src', $(this).attr('url')); | ... | ... |
-
Please register or sign in to post a comment