作者langrisser19 (lenny)
看板Flash
標題Re: [問題] ActionScript_讀URL中變數_加入連結網址
時間Sun May 11 15:21:32 2008
要知道url的話
不一定要靠flash
請愛用ExternalInterface
交給外部java script來抓
抓完再回傳就可以了
如果我的網址是
http://www.123.com.tw:8080/lenny/index.php?user=langrisser
location.href =
http://www.123.com.tw:8080/lenny/index.php?user=langrisser
location.protocol = http
location.hostname = www.123.com.tw
location.host = www.123.com.tw:8080
location.port = 8080
location.pathname = /lenny/index.php
location.search = ?user=langrisser
挑一個要用的
return回去就好了
應該不會太麻煩啦 :p
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.126.66.128
推 etrexetrex:喔喔! 是夢幻模擬戰 05/11 16:30
→ langrisser19:哈哈 對啊 就是夢幻模擬戰 沒想到有人知道 真感動 05/11 18:26
推 norton159:但是兩個變數,該怎麼讓他正確的指向我要的那一個呢? 05/11 21:44