style:新闻
Showing
1 changed file
with
6 additions
and
1 deletions
| ... | @@ -108,7 +108,12 @@ function NewsData() { | ... | @@ -108,7 +108,12 @@ function NewsData() { |
| 108 | // } | 108 | // } |
| 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