2014-04-24 44 views
0

我有一個帶有嵌入式.SWF文件和音頻控件的介紹頁面(我知道,他們不推薦,但客戶喜歡這個主意!)。我以圖形方式(在Illustrator中)不使用Adobe Flash創建.SWF。我能夠找到代碼來使.SWF成爲一個超鏈接,它可以工作,但客戶端真的希望光標顯示一個手形/指針,所以它是一個明顯的超鏈接,可以進入他們的網站。我的超鏈接可以正常工作,但光標不會變成指針

我已經嘗試了各種CSS,如:

* {cursor: pointer; } 
body {cursor: pointer, auto; } 
link {cursor: pointer } 
a:hover {cursor: pointer } 

但所有這些似乎工作!鼠標將成爲頁面其餘部分的指針,但當您位於.SWF對象上時不會。這裏是我的HTML:

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#000000"> 

<audio controls autoplay> 
<source src="BasketballBeats.ogg" type="audio/ogg"> 
<source src="BasketballBeats.mp3" type="audio/mpeg"> 
Your browser does not support the audio element. 
</audio> 

<object type="application/x-shockwave-flash" width="1440" height="700" onmouseup="document.location='http://www.clientsite.com/welcome'"> 
<param name="wmode" value="transparent" /> 
<param name="movie" value="http://www.clientsite.com/TBS-Enter-Site-Intro.swf" /> 
</object> 

</body> 

我用我測試的第一個CSS還上傳頁面的樣本,所以你可以看到光標變成上方和下方的對象但不超過它! http://tentendesignstudio.com/staging/test/intro30有人可以告訴我一種方法來讓這個工作?提前致謝!

+4

'cursor:pointer;'not'cursor;指針;' – mdesdev

+0

你爲什麼不在SWF內創建鏈接? – pablopixel

+0

編輯我的OP,以糾正我的CSS示例代碼中的錯別字。 pablopixel,我使用Adobe Illustrator中的圖層製作.SWF並從那裏導出,因爲我沒有Flash或.FLA來編輯和創建鏈接。 –

回答

0

有一些語法錯誤

嘗試通過爲此事設置你的「進入網站」按鈕(或任何影片剪輯您的Flash文件這個

* {cursor: pointer; } 
body {cursor: pointer; } 
:link {cursor: pointer; } 
a:hover {cursor: pointer; } 
+0

對不起,我編輯我的OP來糾正錯誤,那些錯誤在我的文章中,而不是我嘗試的代碼。這些工作無論是單獨或全部一起工作。 ;-)我還添加了一個示例頁面的鏈接,以便您可以看到它的行爲方式(指針位於對象之上或之下,但不在其上!) –

0

你總是可以做到這一點在Flash中使用ActionScript )到:

this.mouseEnabled = true; 
this.buttonMode = true; 

我不能給你如何在特定的情況下添加此功能的更多具體細節沒有看到實際的AS代碼。