x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
inject_object_div.js - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\bobur\Бобур-магазин цифровых товаров\images\CAALCFKJ.files\inject_object_div.js
旋转
特效
属性
历史版本
function google_inject_object_in_div(id) { // only do this for IE if (navigator.userAgent.indexOf("MSIE ") <= 0) { return; } // make sure we have a div var div = document.getElementById(id); if (!div) { return; } // make sure it has at least 1 object tag var objTags = div.getElementsByTagName("object"); if (objTags.length == 0) { return; } // Save FlashVars and movie. // FlashVars needs to be saved since the value is not copied when // the content of the div tag is updated. // The movie param needs to be saved since some of real player // plugin (version 11) overwrites the param with an wrong value // when div is updated. Note that the bug was not reproduced with // a plugin downloaded on Auguest 10th, 2007. var savedFlashVars = []; var savedMovie = []; for (var j = 0; j < objTags.length; j++) { var params = objTags[j].getElementsByTagName("param"); for (var i = 0; i < params.length; i++) { if (params[i].name.toLowerCase() == 'flashvars') { savedFlashVars[j] = params[i].value; } else if (params[i].name.toLowerCase() == 'movie') { savedMovie[j] = params[i].value; } } } div.innerHTML = div.innerHTML; objTags = div.getElementsByTagName("object"); if (objTags.length == 0) { return; } for (var j = 0; j < objTags.length; j++) { var s = objTags[j].outerHTML; if (savedMovie[j]) { // restore the movie param. var re = /
/ig; s = s.replace(re, "
"); } if (savedFlashVars[j]) { // restore FlashVars. var re = /
/ig; s = s.replace(re, "
"); } objTags[j].outerHTML = s; } } google_inject_object_in_div("google_flash_div");
inject_object_div.js
网页地址
文件地址
上一页 1/1 下一页
下载
( 1 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.