<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>360度图片旋转产品预览展示js插件</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="htmleaf-container">
<header class="htmleaf-header">
<h1>360度图片旋转产品预览展示js插件 <span>360 Degree Product Viewer using plain JavaScript</span></h1>
<div class="htmleaf-links">
<a class="htmleaf-icon icon-htmleaf-home-outline" href="http://www.jb51.net/" title="脚本之家" target="_blank"><span> 脚本之家</span></a>
<a class="htmleaf-icon icon-htmleaf-arrow-forward-outline" href="http://www.jb51.net/" title="返回下载页" target="_blank"><span> 返回下载页</span></a>
</div>
</header>
<div id="pdtViewer">
<h3>自动旋转(可通过按钮来控制产品的旋转)</h3>
<div id="car0"></div>
<h3>点击开始按钮,然后通过按钮来控制产品的旋转</h3>
<div id="car1"></div>
<h3>自动旋转(不能控制)</h3>
<div id="car2"></div>
<h3>通过鼠标拖拽来控制旋转</h3>
<div id="car3"></div>
<h3 class="hidePhone">通过鼠标移动位置来控制旋转</h3>
<div id="car4"></div>
<h3>通过导航按钮来控制旋转</h3>
<div id="car5"></div>
<h3 class="hidePhone">点击图片,并通过键盘方向键来控制旋转</h3>
<div id="car6"></div>
<h3 class="hidePhone">通过鼠标滚轮来控制旋转</h3>
<div id="car7"></div>
</div>
<div id="dummy"></div>
</div>
<script src="js/pdt360DegViewer.js"></script>
<script type="text/javascript">
var path = './img/';
//pdt360DegViewer(imgDivid, count, path, imgType, playable, autoPlay, drag, mouseMove, buttonNavigation, keyNavigation, scroll);
pdt360DegViewer('car0', 51, path, 'png', true, true, false, false, false, false, false); //playable autoPlay
pdt360DegViewer('car1', 51, path, 'png', true, false, false, false, false, false, false); //playable
pdt360DegViewer('car2', 51, path, 'png', false, true, false, false, false, false, false); //autoPlay
pdt360DegViewer('car3', 51, path, 'png', false, false, true, false, false, false, false); //draggable
pdt360DegViewer('car4', 51, path, 'png', false, false, false, true, false, false, false); //mouseMove
pdt360DegViewer('car5', 51, path, 'png', false, false, false, false, true, false, false); //buttonNavigation
pdt360DegViewer('car6', 51, path, 'png', false, false, false, false, false, true, false); //keys
pdt360DegViewer('car7', 51, path, 'png', false, false, false, false, false, false, true); //scroll
</script>
</body>
</html>