Soundcloud Stratus Player不起作用? [英] Soundcloud Stratus Player won't work?

查看:82
本文介绍了Soundcloud Stratus Player不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我的代码不能正常工作并调出Soundcloud Stratus播放器? :(我不太了解Javascript,他们说这就是你所要做的,它会出现,但它不会,我已经尝试了很多东西!:($ /

Why won't my code below work and bring up the Soundcloud Stratus player? :( I don't know Javascript much obviously. They say that's all you have to do and it'll come up, but it won't. I've tried a lot of things! :(

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Blazing Audio | Buy Beats & Instrumentals For $1</title>
    <script type="text/javascript" src="http://stratus.sc/stratus.js"></script>
        <script src="http://code.jquery.com/jquery-1.7.2.js"></script>
 <!-- SCRIPTS -->
<script type="text/javascript">
  $(document).ready(function(){
    $('body').stratus({
      auto_play: true,
      download: false,
      links: 'https://soundcloud.com/blazingaudio/sets/rap-instrumentals',
      random: true
    animate: slide,
    buying: true,
    position: fixed,
    user: false,
    stats: false,
    align: bottom,
    });
  });
</script>
</head>
<body>
</body>
</html>


推荐答案

按以下顺序添加外部js:

Add external js in the following order:

<script src="http://code.jquery.com/jquery-1.7.2.js"></script>
<script type="text/javascript" src="http://stratus.sc/stratus.js"></script>






我更新了代码,

看到这个小提琴


$ b $


I updated your code and it is now working:

$(document).ready(function(){
$('body').stratus({
    auto_play: true,
    download: false,
    links: 'https://soundcloud.com/blazingaudio/sets/rap-instrumentals',
    random: true,
    buying: true,
    user: false,
    stats: false,
});
});



完整代码



Entire code

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title> - jsFiddle demo by Zword</title>
  <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
  <script type="text/javascript" src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>
  <link rel="stylesheet" type="text/css" href="/css/result-light.css">
  <script type='text/javascript' src="http://stratus.sc/stratus.js"></script>

<script type='text/javascript'>//<![CDATA[ 
$(window).load(function(){
$(document).ready(function(){
$('body').stratus({
  auto_play: true,
  download: false,
  links: 'https://soundcloud.com/blazingaudio/sets/rap-instrumentals',
  random: true,
  buying: true,
  user: false,
 stats: false,
});
});
});//]]>  

</script>
</head>
<body>
</body>
</html>

这篇关于Soundcloud Stratus Player不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆