简体   繁体   English

功能在Web服务器上的javascript滑块中不起作用,但在本地主机上起作用(menucool JavaScript Image Slider-版本v.2012.9.11)

[英]feature is not working in javascript slider on web server but working on localhost (menucool JavaScript Image Slider - Release v.2012.9.11)

visit my website http://singrauli.co.in/ the image slider is working but when clicking on thumbnail it is not working and thumbnails are not being highlightined when it is active. 请访问我的网站http://singrauli.co.in/图像滑块正在工作,但是单击缩略图时它不起作用,并且在激活缩略图时也不会突出显示缩略图。

but this feature is working on localhost. 但是此功能在localhost上有效。

visit official site of this slider where all features is working http://www.menucool.com/slider/javascript-image-slider-demo2 请访问该滑盖的所有功能均正常运行的官方网站http://www.menucool.com/slider/javascript-image-slider-demo2

thanks 谢谢

It's a bit of a guess as I don't know your local configuration but would that call be failing because your images are stored on a subdomain (therefore violating the cross-domain rule)? 有点猜测,因为我不知道您的本地配置,但是调用会失败,因为您的图像存储在子域中(因此违反了跨域规则)?

Basically, JS believes that even a subdomain such as img.yourdomain.com is a different domain from www.yourdomain.com. 基本上,JS认为,即使是img.yourdomain.com之类的子域也不同于www.yourdomain.com。

from Cross Sub Domain Javascript (Ajax, Iframe, etc) 来自跨子域Javascript(Ajax,iframe等)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM