使用此代码向弹出窗口添加标题---

发布于 2024-11-16 00:18:43 字数 1678 浏览 4 评论 0原文

我可以在代码中的哪里添加弹出窗口的名称?

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&amp;show_comments=true&amp;auto_play=true&amp;show_playcount=true&amp;show_artwork=true&amp;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&amp;show_comments=true&amp;auto_play=true&amp;show_playcount=true&amp;show_artwork=true&amp;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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

话少情深 2024-11-23 00:18:43

您可以在要打开的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文