Forums

ezs3 mp3 player code breaks upon editing the post (1 post)

  1. deblq
    Member
    Posted 2 years ago #

    When I paste my audio player code created with ezs3 for an mp3 file into my WordPress blog & publish it, it plays fine. However, if I edit that post or page again, extra code is magically added that breaks the players.

    The code is added each time I go from View to HTML in editing, or open the post again for editing, so I can get many instances of it (CDATA) in the player code. It breaks the player.

    I am wondering what I need to do to be able to use the ezs3 mp3 players in my WordPress blog. I'm on a PC, using WP 2.8.6.

    Here is the original code:

    <script type="text/javascript">
    var playerhost = (("https:" == document.location.protocol) ? "https://www.ezs3.com/secure/" : "http://www.ezs3.com/players/");
    document.write(unescape("%3Cscript src='" + playerhost + "mp3/BBS/CD60523C-D603-635E-F49830CDD7239EDD.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    Here is the code after editing the post:

    <script type="text/javascript">// <![CDATA[
    // < ![CDATA[
    // < ![CDATA[ var playerhost = (("https:" == document.location.protocol) ? "https://www.ezs3.com/secure/" : "http://www.ezs3.com/players/"); document.write(unescape("%3Cscript src='" + playerhost + "mp3/BBS/CD60523C-D603-635E-F49830CDD7239EDD.js' type='text/javascript'%3E%3C/script%3E"));
    // ]]></script>

    Thanks,
    Deb

Topic Closed

This topic has been closed to new replies.

About this Topic