JavaScript Uncaught ReferenceError only in Chrome -
my friend built website godaddy.com's website builder, , asked me add simple slideshow it. i'm big of novice can when comes javascript, found code able modify create wanted. (the code found here: http://www.2createawebsites.com/image-slide-show-2.php) modified code below:
<script type="text/javascript" src="http://www.2createawebsites.com/resources/howtocreateawebsitefadeslide.js"></script> <script type="text/javascript"> var mygallery = new fadeslideshow({ wrapperid: "fadeshow2", dimensions: [645, 300], imagearray: [ ["https://cache.nebula.phx3.secureserver.net/obj/nei5ndhbrdjboddcmzc5nzqwnki6owy4njeznja4nwixmjiwzwrizdm3yjyxzdaxzwuymtu=?uid=0eb2a385-f05b-4183-84fb-f593b956edfe", "https://appelbrassandwoodwind.com/schedule_repair.html", "_new"], ["https://cache.nebula.phx3.secureserver.net/obj/nei5ndhbrdjboddcmzc5nzqwnki6y2uzntg1m2mwownlztfln2i3oti4owewmdhlm2y1ymu=?uid=4dcdb1ea-535a-45b3-9cdf-e449f7a6ffde", "https://appelbrassandwoodwind.com/instrument_purchase.html", "_new"], ["https://cache.nebula.phx3.secureserver.net/obj/nei5ndhbrdjboddcmzc5nzqwnki6mwjlownmmjkznzc0mme4mgi3odlhzgyyzwqyzmjjyjq=?uid=f87212cc-b629-474f-a4a9-7f56de88c1fc", "https://appelbrassandwoodwind.com/instrument_rental.html", "_new"], ["https://cache.nebula.phx3.secureserver.net/obj/nei5ndhbrdjboddcmzc5nzqwnki6mdy3owrindu3yzg0yzmxnjixmgy0yjmwndk4zdcwzje=?uid=ab991519-85e4-4a5e-aea4-d6448f0d6708", "https://appelbrassandwoodwind.com/beginner_layaway.html", "_new"], ["https://cache.nebula.phx3.secureserver.net/obj/nei5ndhbrdjboddcmzc5nzqwnki6yme1n2q0yme0y2rlmjqznjrimdg4mgywzwuwzdg5ymu=?uid=f8e39740-fe7b-4d3d-a371-b23a89056651", "https://appelbrassandwoodwind.com/teacher_list.html", "_new"] ], displaymode: { type: 'auto', pause: 2500, cycles: 0, wraparound: false }, persist: false, //remember last viewed slide , recall within same session? fadeduration: 1500, //transition duration (milliseconds) descreveal: "ondemand", togglerid: "" }) </script> <div id="fadeshow2"></div> the resulting slide show can viewed below "home page" text @ (https://appelbrassandwoodwind.com/). slide show works in ie, firefox , safari, not work in chrome. when hit f12 in chrome , go console, following: uncaught referenceerror: fadeslideshow not defined. followed "src" path in script make sure fadeslideshow function defined there , confirmed is. therefore, don't understand why i'm getting error, because other browsers display slide show expected.
i performed extensive search of issue , while found other people had problem, either no solutions offered or ones offered way on head. appreciated.
thanks!
i warning:
[blocked] page @ https://appelbrassandwoodwind.com/ ran insecure content http://www.2createawebsites.com/resources/howtocreateawebsitefadeslide.js. because page requested "https" you're including resource "http". try changing <script> be:
<script type="text/javascript" src="//www.2createawebsites.com/resources/howtocreateawebsitefadeslide.js"></script> notice lack of "http:". request external resource same protocol page's.
here's information on protocol-less urls:
Comments
Post a Comment