开发者

on alert script working and without it not working

If some body can answer.

 <script type="text/javascript">
$(document).ready(function(){
    //alert("Before..");
    $('#myGallery').galleryView({
        panel_width: 960,
        panel_height: 424,
        frame_width: 160,
        frame_height: 70,
        panel_scale: "nocrop",
        frame_opacity: 0.6,
        pause_on_hover: true
    });
    //alert("AFter....");    

    $('#homeGallery').innerfade({
            speed:900,
            timeout: 8000 
    });

});
</script>

above is the code it is not working

if I remove t开发者_开发知识库he alert("before.") it will work.


This could be an issue with some required parts of the document not having been loaded yet. After you have dismissed the dialog, they have and the code works.

Have you tried using document.load instead of document.ready?


I have run into similar issues before and it always suggests a race condition. Although you should be fine because you have a document.ready... to test this, try putting that call into a setTimeout( function(), 1000) and let me know what happens


Can you trying clearing your browser cache. If that doesn't work can you provide the HTML schema

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜