1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Solve JQuery conflict

Discussion in 'JavaScript' started by joujoba, Oct 15, 2012.

  1. #1
    <!-- Start RokBox -->
    <script type="text/javascript" src="rokbox/mootools-release-1.11.js"></script>
    <script type="text/javascript" src="rokbox/rokbox.js"></script>
    <link href="rokbox/themes/dark/rokbox-style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="rokbox/themes/dark/rokbox-config.js"></script>
    <!-- End Rokbox -->
    //////////////////////////////////////////////////////////////////////////////////////////////////////
    <!-- IF S_MCHAT_ENABLE and (SCRIPT_NAME eq 'mchat' or SCRIPT_NAME eq 'index') and (S_MCHAT_ON_INDEX or U_MCHAT) -->
    <script type="text/javascript" src="{ROOT_PATH}mchat/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>
    <link href="{T_THEME_PATH}/mchat_prosilver.css" rel="stylesheet" type="text/css" />
    <!-- ENDIF -->
    //////////////////////////////////////////////////////////////////////////////////////////////////////
    <!-- IF SCRIPT_NAME eq 'viewtopic' -->
    <script type="text/javascript">
    	window.jQuery || document.write(unescape('%3Cscript src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"%3E%3C/script%3E'));
    </script>
    <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.cookie.js"></script>
    <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.collapse.js"></script>
    <script type="text/javascript">
    // <![CDATA[
    $("#similartopiclist").collapse({show: function(){
    	this.animate({
    		opacity: 'toggle',
    		height: 'toggle'
    		}, 300);
    	},
    	hide : function() {	
    		this.animate({
    		opacity: 'toggle',
    		height: 'toggle'
    		}, 300);
    	}
    });
    // ]]>
    </script>
    <!-- ENDIF -->
    Code (markup):
    script one and two are compatible but script 1 and 3 are eliminating each other
     
    joujoba, Oct 15, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Rukbat, Oct 15, 2012 IP