Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
20600f25
authored
2021-01-20 11:59:15 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻
1 parent
3bf69fb8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
staticJs/pageHome.js
staticJs/pageHome.js
View file @
20600f2
...
...
@@ -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'
));
...
...
Please
register
or
sign in
to post a comment