登錄控件
答案是:與登錄腳本替換這個腳本標籤
此:
<script src="http://www.jscache.com/wejs?wtype=sswidecollectreview&uniq=612&locationId=1480219&lang=en_US&border=true"></script>
從登錄腳本此標籤
<script src="https://www.tripadvisor.com/WidgetEmbed-sswidecollectreview?uniq=831&locationId=308116&border=true&lang=en_US"></script>
,並添加[ S]字符鏈接圖像[https]像這樣:
<a target="_blank" href="http://www.tripadvisor.com/"><img src="https://www.tripadvisor.com/img/cdsi/img2/branding/medium-logo-12097-2.png" alt="TripAdvisor"/></a>
這樣:
<a target="_blank" href="http://www.tripadvisor.com/"><img src="https://www.tripadvisor.com/img/cdsi/img2/branding/medium-logo-12097-2.png" alt="TripAdvisor"/></a>
工作...
什麼解決辦法?如果您正在製作Facebook應用程序,那麼這是一個巨大的問題,該應用程序(完全是TripAdvisor)是必不可少的,也是頁面選項卡上的唯一元素,並且它不適用於大多數用戶。 – 2012-08-10 06:48:22
我沒有「通用」的解決方法,所以有點複雜,但這裏是**未經測試的**版本;腳本中的問題(至少是我看過的部件,還有更多)似乎是對由Akamai提供服務並且沒有HTTPS版本的「jscache.com」的引用。它唯一提供的是一個引用了Tripadvisor URL的JavaScript。 Tripadvisor URL以安全版本存在,所以如果您可以自己提供jscache.com生成的腳本,並將其與httpsad URL一起提供給Tripadvisor,那麼_should_應該解決它。 – 2012-08-10 07:04:37
再過一杯咖啡後,我應該補充一點,這個解決方法當然假設TripAdvisor不會改變他們的網站,所以你的腳本中斷了。 – 2012-08-10 07:33:33