I am using the third SixtyPlugin (jQuery) to display a 360 degree view of a car.
& lt; Div class = "threesixty" data-path = "img / volvo / test / car {index} .jpg" data-count = "6" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; Var $ 3Syxty = $ ('thirty thousand'); $ 3 sixty Third Centy ({drag driving: 'horizontal', use: false, dragable: true}); & Lt; / Script & gt;
I want to use the selected box to change the car shown so that users can choose their own car.
I tried to change the .change function path to call a .data function
& lt; Script type = "text / javascript" & gt; Var $ 3Syxty = $ ('thirty thousand'); $ 3 sixty Third Centy ({drag driving: 'horizontal', use: false, dragable: true}); $ ("Select") .change (function () {$ ('threesixty'). Data ('path', 'img / bmw / test / car {index} .jpg');}); & Lt; / Script & gt;
It does not seem to change anything
when I use it:
$ ("select") .change (function () {$ ('threesixty'). Attr ('data-path', 'IMG / BMW / test / car {index} .jpg');});
This path changes but still does not show a new set of images.
Any help please?
No comments:
Post a Comment