<!-- Wikplayer
http://www.wikplayer.com -->
<script type="text/javascript" src="http://www.wikplayer.com/code.js"
data-config="{'skin':'skins/wikfull/ribbonBlue/skin.css','volume':50,'autoplay':'true','shuffle':'true','repeat':1,'showcomment':false,'marqueetexton':true,'placement':'top','showplaylist':false,'playlist':[{'title':'%E7%B4%A0%E6%89%8B%E3%81%AB%E6%84%9B','url':'http://www.fileden.com/files/2007/2/11/760403/SCM%20player/01.mp3'}]}" ></script>
<!-- Wikplayer code end -->
上面的代碼無法在網誌上直接運行,好似是要防止什麼XSS攻擊,需要轉成以下這種寫法:
<script type="text/javascript" ><!--
document.write(unescape('%3Cscript%20type%3D%22text/javascript%22%20src%3D%22http%3A//scmplayer.net/script.js%22%20%3E%3C/script%3E'));
//--></script>
<script type="text/javascript"><!--
SCMMusicPlayer.init("{'skin':'skins/blue/skin.css','playback':{'autostart':'true','shuffle':'true','volume':'50'},'playlist':[{'title':'%u611B%u3068%u4F1A%u3046','url':'http://www.fileden.com/files/2007/2/11/760403/SCM%20player/01.mp3'}],'placement':'top','showplaylist':'false'}");
//--></script>
我不太懂, 請問有沒有人會寫?