2012-10-07 81 views
0

我使用這個代碼嵌入.swf文件的iframe中鏈接到其他網頁:有人可以解決這個問題嗎? (基本HTML)

<div onmousedown="window.location.href='http://www.pagewhichopens.com'" height=26 width=100> 
    <object height=26 width=100> 
     <param name="movie" value="http://www.bcd.com/embeddedfile.swf"> 
     <param name="wmode" value="transparent" /> 
     <embed wmode=transparent allowfullscreen="true" allowscriptaccess="always" src="http://www.bcd.com/embeddedfile.swf" height=26 width=100></embed> 
    </object> 
</div> 

但是,當我依序按在SWF打開另一個頁面內該iframe只有我不要我不希望它在整個瀏覽器中打開......可以通過插入target =「_ parent」來完成,但我應該在哪裏放置它?

回答

-1

要在新標籤中使用target="_blank"打開一些鏈接來實現這個

+0

該屬性僅適用於錨元素,對嗎? – Vikdor

+0

但是應該把target =「_ blank」放在哪裏? – user1726950

+0

@Vikdor我認爲是的 – rsz

2

使用top.location設置頂部框架或parent.location的位置直接父。 window引用當前上下文(在框架內)。

相關問題