0

hello please help me add this java script to echo ; and replace xxxxx with $url

<script type="text/javascript" src="/kt_player/kt_player.js"></script>
<div id="kt_player" style="visibility: hidden">
    <a href="http://adobe.com/go/getflashplayer">This page requires Adobe Flash Player</a>
</div>

<script type="text/javascript">
    var flashvars = {
        hide_controlbar: '1',
        hide_style: 'fade',
        preview_url: 'http://www.kernel-video-sharing.com/kt_player/poster.jpg',
        bt: '5',
        video_url: 'xxxxx',
        video_url_text: '720p'
    };

    var params = {allowfullscreen: 'true', allowscriptaccess: 'always'};
    kt_player('kt_player', '/kt_player/kt_player.swf', '854', '480', flashvars, params);
</script>

1 Answer 1

1

All you need to do is to echo the variable, like this:

// your code

video_url: '<?php echo $url; ?>',

// your code
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.