简体   繁体   中英

Uncaught TypeError: undefined is not a function

I have checked a lot of forums, but i did't find a solution. site -> http://dszerszen.pl/domi/

and this code

<script type="text/javascript">
    $(document).ready(function(){
        $(".info").tytabs({
            tabinit:"1",
            fadespeed:"fast"
        });
    });
</script>

icon switcher dosent work

Simply rearrange your scripts in this order:

<script type="text/javascript" src="jquery.min.js"></script>    
<script src="modernizr.custom.63321.js"></script>
<script type="text/javascript" src="tytabs.jquery.min.js"></script>
<script src="scrolltop.js" type="text/javascript"></script>    
<script async src="analytics.js"></script>

The jQuery core library should be included first followed by the other plugin code.

You have defined scrollTop.js in two places.

One is at the top of css files. And jquery is not loaded before that. That's why you are getting error.

        <title>Smykke Galleriet</title>
        <link type="text/css" rel="stylesheet" href="stylesheet.1.css" />
        <script src="scrolltop.js" type="text/javascript"></script>

Remove that line and it will work properly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM