0

私がそれを動かそうとしているウェブサイトはここにあります:

http://www.kaimeramedia.com/derek/Website/Main_New7.html

問題は、imageflow.jsファイルの最後でhighslideのコードを機能させることができないように見えることです。

コードは次のとおりです。

domReady(function()
{
    var instanceOne = new ImageFlow();
    instanceOne.init({ ImageFlowID:'CGI-Archive',  startID: 3, reflectionPNG: true, onClick: function() { return hs.expand(this, {src: this.getAttribute('longdesc'), outlineType: 'rounded-white', showCredits: false,fadeInOut:true, captionText: this.getAttribute('alt')}); } 
                                                                                                                                                                                                                                                                       });

ImageFlowはそれなしで動作しますが、両方が一緒に動作することになっています。私は何が間違っているのですか?

imageflow.jsおよびhighslide.jsファイル全体の場所は次のとおりです。

http://www.kaimeramedia.com/derek/Website/imageflow.js

highslide.jsファイルの場合、imageflow.jsをhighslide.jsに交換します

どんな助けでも大歓迎です

4

1 に答える 1

1

コードの最後に中括弧がありません。

domReady(
function()
{
    var instanceOne = new ImageFlow();
    instanceOne.init(
        {
            ImageFlowID     :'CGI-Archive',
            startID         : 3,
            reflectionPNG   : true,
            onClick         : function() {
                return hs.expand(
                    this,
                    {
                        src         : this.getAttribute('longdesc'),
                        outlineType : 'rounded-white',
                        fadeInOut   : true,
                        captionText : this.getAttribute('alt')
                    }
                );
            }
        }
    );
} // <!-- this one is missing in your code
); // EDIT: missing closing bracket here as well

間違っている別のこと...これ:

<script type="text/javascript">var myScript = Asset.javascript(source[, properties]);</script>

おそらく読むべきです:

<script type="text/javascript">var myScript = Asset.javascript(source, [properties]);</script>

また:

<script type="text/javascript">var myScript = Asset.javascript(source, properties);</script>
于 2011-11-14T18:59:58.633 に答える