Greybox Image Gallery - イメージが最初のクリックにロードしない

StackOverflow https://stackoverflow.com/questions/5048905

  •  15-11-2019
  •  | 
  •  

質問

画像セットに画像を表示するには、GreyBoxを使用しています。いずれかのリンクでクロックすると、イメージセットが表示されますが、写真は初めてロードされません(白い背景が表示されます - 添付画像を参照)。画像セット内の1つの場所を前方に移動してから戻してから、正しくレンダリングされます。

次のファイルをセクションにロードしており、GB_ROOT_DIR変数が設定されています。助言がありますか?ありがとう!

<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
.

ENTER IMENT Descriptionこちら

役に立ちましたか?

解決

Figured it out - the image for my thumbnail (square) and what was to be loaded in the greybox (oblong) were two physically different files. GB doesn't handle that for some reason.

他のヒント

Actually, if you were using Greybox v5.54 when you ran into this problem, you most likely were victim of a bug reported in this version, which is somehow related with (pre-)loading the pictures.

Try absolute paths for your gallery items. Fixed that behavior for me.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top