English 中文(简体)
如何在html上与一个被遗弃物体连接?
原标题:How to link to an Embed object in html?

我有一个带有刺bed的物体,显示录像流,如何建立与它的html链接,因此当用户点击链接时,它将打开另一个窗口,显示录像?

<embed id="player" src="http://media2.wtnh.com/_local/livestreams/FMLPlayer.swf" align="center" width="588" height="351" wmode="opaque" allowfullscreen="true" flashvars="live=true&megastream=rtmpe://megastream.uvault.com/lbservice/&uniqueId=d733607a4ce559&shuffle=false&displayheight=425&autostart=true&frontcolor=0xFFFFFF&backcolor=0x000000&lightcolor=0xCCCCFF&overstretch=true&showicons=false&showvolume=false&volume=0&showdigits=false&showicons=false&showvolume=false&repeat=list"></embed>

页: 1

<Html>
<Head><Title>TV Channels</Title></Head>

<Body BgColor=#D6D6D6 Link=#FFFFFF Vlink=#00FFFF>

<Center>

      <Table Cellspacing=0 Cellpadding=0>
        <Tr><Td Align=Center Valign=Bottom BgColor=#3366FF><A Href="" target="_blank"><Font Size=2 Color=white>AlJazeeraEnglish</Font></A></Td></Tr>
        <Tr>
          <Td>
            <Object Width=588 Height=351>
              <embed id="player" src="http://freetubetv.net/media/ftbe.swf" align="center" width="588" height="351" wmode="opaque" allowfullscreen="true" flashvars="image=http://i.imagehost.org/0103/aljazeera.gif&file=livestation/aljazeer_en_medium.sdp&streamer=rtmp://liveplay.simplecdn.net/aljazeerenhqf800/&displayheight=425&shuffle=true&autostart=true&overstretch=true&showicons=false&showvolume=false&volume=0&showdigits=false&showicons=false&showvolume=false&repeat=list&displayclick=fullscreen&controlbar=none&icons=false"></embed>
            </Object>
          </Td>
        </Tr>
      </Table>

</Center>
</Body>
</Html>

现在,如果你点击“Al JazeeraEnglish”这个标题,就会打开一个空洞的窗户,如何在这个空窗上展示被刺的录像带? 我知道一种方式是拯救<代码><embed>...</embed> string into another html file,并链接到该文档中。 但是,我不想将其留给另一个档案,我想知道,我是否能够把这段话通过到连接某些方面,例如:<代码><A Href=“<embed>...</embed>“目标=”_blank”>?

最佳回答

在身体上创建另一个网页是嵌入式录像。 在该网页上打下一个 anchor子。 Profit.

Edit:

你不能像你所希望的那样这样做。 如果您有服务器侧处理,或想做script,那么你可以改变同一页的面貌,增加电离参数,作为链接的一部分,并根据这些参数改变您的嵌入标签的大小,以填充页。 这项建议没有建议。

建议采用的方法是新的html网页。 如果你担心在两页之间重复使用密码,你就可以把嵌入的标签推入一个javascript文档中,并在每页上积极添加,或者使用某种先处理器与梦想相去做。

Edit:

var params = window.location.search.substring(1);
var splitParams = params.split( & );

var targetKey = "fullscreen";
var targetValue = null;

var keys = new Array();
var values = new Array();

for (i = 0; i < splitParams.length; i++) {
    var keyValue = splitParams[i].split( = );

    keys.push(keyValue[0]);
    values.push(keyValue[1]);
}

for (i = 0; i < keys.length; i++) {
    if (keys[i] == targetKey) {
        targetValue = values[i];
        break;
    }
}

if (targetValue != null) {
    // Do something different with your embed object
} else {
    // Do what you re doing now with your embed object
}
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签