18.08.2012 04:01 příspěvků:2 | Dobrý den Jsem nováček v javaskriptu a potřeboval by jsem poradit Potřebuji upravit skript jestli je to možné aby každý odkaz byl na jednom řadku <pre><!--SCM Music Player by Adrian C Shum - http://scmplayer.net--> <script type="text/javascript" src="http://scmplayer.net/script.js" ></script> <script type="text/javascript"> SCMMusicPlayer.init("{'skin':'skins/black/skin.css','playback':{'autostart':'false','shuffle':'false','volume':'100'},'playlist':[{'title':'111','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'},{'title':'222','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'},{'title':'333','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'},{'title':'444','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'},{'title':'555','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'}],'placement':'bottom','showplaylist':'false'}"); </script> <!--End of SCM Music Player script--></pre> Nějak takhle <pre><!--SCM Music Player by Adrian C Shum - http://scmplayer.net--> <script type="text/javascript" src="http://scmplayer.net/script.js" ></script> <script type="text/javascript"> SCMMusicPlayer.init("{'skin':'skins/black/skin.css','playback':{'autostart':'false','shuffle':'false','volume':'100'},'playlist':[ {'title':'111','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'}, {'title':'222','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'}, {'title':'333','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'}, {'title':'444','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'}, {'title':'555','url':'http://www.youtube.com/watch?v=pFS4zYWxzNA'} ],'placement':'bottom','showplaylist':'false'}"); </script> <!--End of SCM Music Player script--></pre> A potom ještě upravit abych mohl skript spouštět ze souboru <pre><script type="text/javascript" src="http://www.test.cz/test.js" ></script> </pre> |
---|---|