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

时间:2011-06-15 18:42:28

标签: javascript popup soundcloud

在代码中我可以为弹出窗口添加名称吗?

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>

我通过embeddable html在wix中使用弹出窗口,作为托管内部内容的音乐播放器。我试图解决为什么我的弹出窗口在大多数浏览器中工作,但不是IE9。我能说的最好的是我需要命名我的弹出窗口,我想以任何一种方式命名......

由于

该网站在?可以在这里找到:www.patrickharlin.com

1 个答案:

答案 0 :(得分:0)

您在要打开的HTML页面的head元素中添加标题。

这将是标准title HTML element