修改媒体播放

This commit is contained in:
luoquan 2016-03-11 13:16:44 +08:00
parent ec4b7e3744
commit 033c7991e1
1 changed files with 9 additions and 6 deletions

View File

@ -931,19 +931,22 @@ function _mediaAttrs(srcTag) {
}
function _mediaEmbed(attrs,target) {
if(target && target === "media"){
var html = [[],"<img src=\"../../images/video.png\" "];
var html = [[],"<img class=\"mediaIco\" src=\"../../images/video.png\" "],_ww = window.screen.width,_wh = window.screen.height;//_docHeight(window.document);
_each(attrs, function(key, val) {
if(key === "src"){
html[0].push("<a href=\"javascript:window.open('", val,"','newwindow',''\">");
html[0].push("<a class=\"mediaIcobox\" href=\"javascript:window.open('"+ val+"','newwindow','");
}else{
if(key === "width"){
html[0].push("width="+val,",left="+(_ww-val)/2 + ",");
}else if(key === "height"){
html[0].push("height="+val,",top="+(_wh-val)/2);
}else{
html.push(key, "=\"" , val , "\" ");
if(key === "width"){
}else if(key === "height"){
}
}
});
html[0].push("')\">");
html[0] = html[0].join("");
html.push("/></a>");
return html.join("");
}else{