使用此代码向弹出窗口添加标题---
我可以在代码中的哪里添加弹出窗口的名称?
code: (embedded in wix flash site)
<script language="javascript"><!--
function PopUp() {
var PopWidth = "400";
var PopHeight = "220";
var PosTop = "200";
var PosLeft = "200";
var SettingS = "toolbar=no,menubar=no,scrollbars=no,resizable=no,width=" + PopWidth + ",height=" + PopHeight + ",top=" + PosTop + ",left=" + PosLeft;
var PopUp = open("","box",SettingS);
PopUp.document.clear();
PopUp.document.write('<object height="200" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F434705&show_comments=true&auto_play=true&show_playcount=true&show_artwork=true&color=3f1081"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="360" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F434705&show_comments=true&auto_play=true&show_playcount=true&show_artwork=true&color=3f1081" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><a href="http://soundcloud.com/patrickharlin/sets/apps-set">Music by Patrick Harlin</a> by <a href="http://soundcloud.com/patrickharlin">Patrick Harlin</a></span>');
}
window.onload=PopUp;
// -->
</script>
我通过嵌入 html 在 wix 中使用弹出窗口,作为托管内部内容的音乐播放器。我正在尝试解决为什么我的弹出窗口可以在大多数浏览器中运行但不能在 IE9 中运行。我能说的最好的情况是我需要命名我的弹出窗口,并且我想以任何一种方式命名它......
谢谢
该网站在?可以在这里找到:www.patrickharlin.com
Where in the code can I add a name for the pop up window??
code: (embedded in wix flash site)
<script language="javascript"><!--
function PopUp() {
var PopWidth = "400";
var PopHeight = "220";
var PosTop = "200";
var PosLeft = "200";
var SettingS = "toolbar=no,menubar=no,scrollbars=no,resizable=no,width=" + PopWidth + ",height=" + PopHeight + ",top=" + PosTop + ",left=" + PosLeft;
var PopUp = open("","box",SettingS);
PopUp.document.clear();
PopUp.document.write('<object height="200" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F434705&show_comments=true&auto_play=true&show_playcount=true&show_artwork=true&color=3f1081"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="360" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F434705&show_comments=true&auto_play=true&show_playcount=true&show_artwork=true&color=3f1081" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><a href="http://soundcloud.com/patrickharlin/sets/apps-set">Music by Patrick Harlin</a> by <a href="http://soundcloud.com/patrickharlin">Patrick Harlin</a></span>');
}
window.onload=PopUp;
// -->
</script>
I am using a popup in wix via embeddable html, as a music player hosting internal content. I am trying to troubleshoot why my popup works in most browsers but not IE9. The best I can tell is that I need to name my popup window, and I'd like to name it either way...
Thanks
The site in ? can be found here: www.patrickharlin.com
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在要打开的 HTML 页面的
head
元素中添加标题。这将是标准的
title
HTML 元素。You add the title in the
head
element of the HTML page you are opening.This would be the standard
title
HTML element.