Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Imageflow不显示highslide代码_Javascript_Image_Popup_Onclick_Imageflow - Fatal编程技术网

Javascript Imageflow不显示highslide代码

Javascript Imageflow不显示highslide代码,javascript,image,popup,onclick,imageflow,Javascript,Image,Popup,Onclick,Imageflow,我正在努力使其工作的网站如下: 问题是,我似乎无法在imageflow.js文件的末尾获得highslide的代码 代码是: domReady(function() { var instanceOne = new ImageFlow(); instanceOne.init({ ImageFlowID:'CGI-Archive', startID: 3, reflectionPNG: true, onClick: function() { return hs.expand(th

我正在努力使其工作的网站如下:

问题是,我似乎无法在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文件的位置:

对于highslide.js文件,将imageflow.js替换为highslide.js


任何帮助都将不胜感激

代码末尾缺少一个大括号

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
domReady(
函数()
{
var instanceOne=new ImageFlow();
instanceOne.init(
{
ImageFlowID:“CGI-Archive”,
startID:3,,
reflectionPNG:对,
onClick:function(){
返回hs.expand(
这
{
src:this.getAttribute('longdesc'),
大纲视图类型:“圆形白色”,
法德努特:没错,
captionText:this.getAttribute('alt')
}
);
}
}
);

}//这似乎解决了部分问题,但现在当你点击一个图像时,它只是永久性地挂起。是的,我担心这不会解决所有问题。你使用任何调试工具吗?chrome内置了它们(Ctrl我会为mac设置-Cmd i)。firefox有firebug插件。在其中任何一个上,只需检查控制台即可。(这是ctrl-alt i/cmd-alt i)如果您这样做,您将看到,该资源未定义(以及MM_图像)
<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>