修改媒体播放
This commit is contained in:
parent
ec4b7e3744
commit
033c7991e1
|
@ -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{
|
||||
html.push(key, "=\"" , val , "\" ");
|
||||
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 , "\" ");
|
||||
}
|
||||
}
|
||||
});
|
||||
html[0].push("')\">");
|
||||
html[0] = html[0].join("");
|
||||
html.push("/></a>");
|
||||
return html.join("");
|
||||
}else{
|
||||
|
@ -2783,7 +2786,7 @@ _extend(KCmd, {
|
|||
sel.addRange(rng);
|
||||
if (doc !== document) {
|
||||
var pos = K(rng.endContainer).pos();
|
||||
//win.scrollTo(pos.x, pos.y);
|
||||
//win.scrollTo(pos.x, pos.y);
|
||||
}
|
||||
}
|
||||
win.focus();
|
||||
|
|
Loading…
Reference in New Issue