Hi there,
I am trying to run the following as part of a page in Rapidweaver. This is the source page I have - this all runs fine as a standalone page:
<title>Traffic Jam Studio - 360 Photo - 32 Steps</title>
<script src="./modelook_files/jquery.min.js"></script>
<link rel="stylesheet" href="./modelook_files/jquery-ui.css">
<script src="./modelook_files/jquery-ui.min.js"></script>
<script src="./modelook_files/modelook.js"></script>
This runs fine as a standalone page: http://trafficjamstudio.com/product360s/32/
I am using stacks and foundation.
I add the following to the javascript tab:
<script src="http://trafficjamstudio.com/360/modelook_files/jquery.min.js"></script>
<script src="http://trafficjamstudio.com/360/modelook_files/jquery-ui.min.js"></script>
<script src="http://trafficjamstudio.com/360/modelook_files/modelook.js">
</script>
<link rel="stylesheet" href="http://trafficjamstudio.com/360/modelook_files/jquery-ui.css">
<script>
$(function () {
$(".modelook").modelook({
drawMethod: "singleCanvas",
serialNumber: "lmvw5-rqco-5y0hm-t1hw-79c09",
imagesUrlSchema: "http://trafficjamstudio.com/360/images/<width>x<height>/<element>.jpg",
imagesXCount: 32,
imagesYCount: 1,
autoLoad: true,
autoSpin: true,
presentation: {
width: 500,
height: 503,
singleTurnTime: null,
bounceX: false
},
interface: {
show: true,
zoomButton: true,
zoomScroll: true
},
zoom: { easing: true },
playInitialSpeed: 0.3,
imagesSizes: [
[500, 503], [900, 906], [1668, 1679]
],
beforeUrlMaskElement: function (nr) {
var n = 4;
return Array(n - String(nr).length + 1).join('0') + nr;
}
});
});
I then add this to the html stack:
This all works fine when I preview it in rapidweaver - I can see the product and rotate it etc. When I upload this to our site, it does not seem to load the javascript: http://trafficjamstudio.com/360/index.php
I know it works fine as the standalone page works ok plus it works in preview mode. I just do not know what I am doing wrong.
I’d appreciate any ideas as to why this does not work.
Thanks in advance for any tips.
D