0

I am experiencing a problem with some Javascript - please see my site and code here - http://bit.ly/M1YCV7.

The page opens with a logo and nav menu in the centre. When you click a nav link, the logo moves up and the page content box should appear below it. The animation is perfect for all links apart from the first (which in this case is ABOUT), where it sometimes only triggers the logo animation and leaves the content hidden.

Is there anything I can do to ensure it does everything at the same time? Any help would be greatly appreciated.

4

2 に答える 2

1

contentslider ライブラリは、init で ID "pagination-settings" を持つ要素を想定しており、見つからない場合はクラッシュし、例外がスローされます。ただし、ライブラリの残りの部分がまだ機能する理由はわかりません。

于 2012-06-13T08:29:23.713 に答える
0

onread イベントではなく、onload イベントでスクリプトを起動してみてください。問題は、ページが完全に読み込まれる前にコードを実行したことが原因だと思います。一般に、このタイプのスクリプト (jquery アニメーションを含む) は、ページが完全に読み込まれるまで待機してから、animation.event を開始する必要があります。

于 2012-06-13T08:28:21.947 に答える