Javascript/css轮盘赌?

Javascript/css轮盘赌?,javascript,jquery,Javascript,Jquery,我正在寻找一个侧面图像轮盘赌轮。有点像这样 我似乎找不到任何来源或例子 基本HTML `<html> <head> <meta charset="utf-8"> <title></title> </head> <body> <img src="" alt="" id="picture1"/> <img src="" alt="" id="pictur

我正在寻找一个侧面图像轮盘赌轮。有点像这样

我似乎找不到任何来源或例子

基本HTML

`<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <img src="" alt="" id="picture1"/>
    <img src="" alt="" id="picture2"/>
    <img src="" alt="" id="picture3"/>
    <img src="" alt="" id="picture4"/>
    <button type="button" name="button" onclick="spin()">click</button>
  </body>
</html>`
其余的取决于你的朋友

你可能会觉得有用。
function spin(){
    var x = Math.floor( Math.random() * 3 ) 
    switch (x) {
      case 0:
        document.getElementById('picture1');
        break;
      case 1:
        document.getElementById('picture2')
        break;
      case 2:
        document.getElementById('picture3')
        break;
      case 3:
        document.getElementById('picture4')
        break;
    }
  }