webtuto Posted March 29, 2009 Share Posted March 29, 2009 Hi everyone i made a music website where people liscten to music on a flash player and i added an embed code so they can embed the player to their profiles on s ocial network websites or their blogs ..... this coded is in javascript here is it --> <script type="text/javascript" src="http://zik4.com/zik4/player/ufo.js"></script> <p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p> <script type="text/javascript"> var FU = { movie:"http://zik4.com/zik4/player/mp3player.swf",width:"275",height:"400",majorversion:"8",build:"11",bgcolor:"#FFFFFF", flashvars:"file=http://zik4.com/zik4/player/all1.php?art=135&showdigits=true&thumbsinplaylist=false&autostart=true&displayheight=120&repeat=true&shuffle=false&backcolor=0x000000&frontcolor=0xfdfeff&lightcolor=0xe0efb2" }; UFO.create( FU, "player2"); </script> But bcz its on javascript , these websites douesnt allow ppl to add javascriptes codef of course , so is there a way to make it HTML to make other websites allow it ? like on playlist.com , imeem.com , youtube ..... ?? thanks Quote Link to comment https://forums.phpfreaks.com/topic/151616-how-to-switch-a-javascripte-code-to-html-to-make-it-usable/ Share on other sites More sharing options...
MadTechie Posted March 29, 2009 Share Posted March 29, 2009 If a site does not allow JS then theirs nothing you can do.. if you convert it to html it was view as JS CODE but will have no affect it will just be readable.. the only option i can think of is if the sites allow flash objects then you could create a flash app! Quote Link to comment https://forums.phpfreaks.com/topic/151616-how-to-switch-a-javascripte-code-to-html-to-make-it-usable/#findComment-796479 Share on other sites More sharing options...
corbin Posted March 30, 2009 Share Posted March 30, 2009 You could use an iframe, but I doubt the websites people would post it to allow those. Quote Link to comment https://forums.phpfreaks.com/topic/151616-how-to-switch-a-javascripte-code-to-html-to-make-it-usable/#findComment-796542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.