0

我正在研究要放置用于客户视频跟踪的omniture站点催化剂变量。我的问题是,当我们点击 jwplayer 播放按钮时,我想发出警告消息。任何人都可以请告诉我如何做到这一点。

4

1 回答 1

2

这是一个快速示例!

<html>
<head>
<title>Test Page</title>
</head>
<body>
<script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
<div id="player"></div>
<script type="text/javascript">
    jwplayer("player").setup({
            file: "http://www.longtailvideo.com/jw/upload/bunny.mp4",
            image: "http://www.longtailvideo.com/jw/upload/bunny.jpg",
            flashplayer: "http://player.longtailvideo.com/player.swf",
            height: 300,
            width: 465,
            events:{
                onPlay: function(event) {
                    alert('Playing!');
                }
            }
    });
</script>
</body>
</html>
于 2013-01-15T22:23:54.197 回答