SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Houston, Texas
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Conflicting JScript Files Revisted

    I have the following files:
    Code:
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script src="scripts/iefix.js"></script>
    <script src="scripts/test.js"></script> 
    <script src="scripts/jquery.imageScroller.js"></script> 
    <script src="scripts/tools.scrollable-1.0.5.min.js"></script>
    <script src="scripts/mootools.js"></script>
    <script src="scripts/slimbox.js"></script>
    with the conflict being the mootools and slimbox files. I have looked at the JQuery no conflict fix but I'm confused where in the jquery.imageScroller.js to place the code. The first lines of code are:
    Code:
    ( function( $ ) {
    	$.fn.imageScroller = function ( options ) {
    		return this.each( function() {
    			var $this = $( this );
    			var loadImgs = 0;

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    You could try adding the code in red:

    Code:
    $.noConflict();
      jQuery(document).ready(function($) {
    	$.fn.imageScroller = function ( options ) {
    		return this.each( function() {
    			var $this = $( this );
    			var loadImgs = 0;

  3. #3
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Houston, Texas
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your help Ralph but it didn't seem to do the trick.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •