Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
2586703@qq.com
10 years ago
Commit
380d0c4480c71c64681117a23ebd19a9f21c325b
2 parents
8619b3de
aae1d935
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
res/js/yohood.js
res/js/yohood.js
View file @
380d0c4
...
...
@@ -235,15 +235,28 @@ define('yohood', function(require, exports) {
});
});
//标签设置
$
(
".show-wrap .image-box"
).
bind
(
"click"
,
function
()
{
showNone
(
$
(
this
));
});
$
(
"#bigpic"
).
live
(
"mousemove"
,
function
()
{
showLabel
(
$
(
this
).
parent
(),
480
,
480
,
0
,
0
);
});
$
(
".show-wrap .image-box"
).
bind
(
"mousemove"
,
function
()
{
showLabel
(
$
(
this
),
308
,
308
,
0
,
0
);
});
if
(
/
(
iPad
)
/i
.
test
(
navigator
.
userAgent
))
{
//ipad处理
$
(
".show-wrap .image-box"
).
bind
(
"click"
,
function
()
{
var
timer
=
setInterval
(
function
(){
if
(
$
(
".show"
).
size
()
>
0
)
{
showLabel
(
$
(
".show"
),
480
,
480
,
0
,
0
);
clearInterval
(
timer
);
return
true
;
}
},
1
);
});
}
else
{
$
(
".show-wrap .image-box"
).
bind
(
"click"
,
function
()
{
showNone
(
$
(
this
));
});
$
(
"#bigpic"
).
live
(
"mousemove"
,
function
()
{
showLabel
(
$
(
this
).
parent
(),
480
,
480
,
0
,
0
);
});
$
(
".show-wrap .image-box"
).
bind
(
"mousemove"
,
function
()
{
showLabel
(
$
(
this
),
308
,
308
,
0
,
0
);
});
}
$
(
".show-wrap .image-box, .img-zoom"
).
bind
(
"mouseout"
,
function
()
{
showNone
(
$
(
this
));
});
...
...
Please
register
or
login
to post a comment