Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Moved javascript to new page, not working Reply To: Moved javascript to new page, not working

#148093
Josiahmann
Participant

Hmm, I wonder if WordPress is automatically adding that. The code I have shows no

<

p>’s
`

    jQuery(function ($) {
    // Load dialog on click
      $("#slides #viewSample").click(function (e) {

          $("#youtube-channel").modal({onOpen: function (dialog) {
            dialog.overlay.fadeIn('slow', function () {
             dialog.container.slideDown('slow', function () {
              dialog.data.fadeIn('slow');
             });
            });
          }});
      return false;
      });
    });
<script type="text/javascript">
    jQuery(document).ready(function($) {
    // Creating hoverscroll with fixed arrows
    $('#my-list').hoverscroll({
        fixedArrows: true,
        rtl: true
    });
    // Starting the movement automatically at loading
    // @param direction: right/bottom = 1, left/top = -1
    // @param speed: Speed of the animation (scrollPosition += direction * speed)
    var direction = -1,
        speed = 2;
    $("#my-list")[0].startMoving(direction, speed);
    });
</script>
$(".customerLogos").hide(0).delay(3000).fadeIn(1000);


jQuery(document).ready(function($) {
     $('#menu li').hoverIntent({
        sensitivity: 7,
        over: function(e){
           $(this).find('ul.megamenu').css({visibility: 'visible',display: 'none'}).slideToggle();
        },
        out:function(e){
            $(this).find('ul.megamenu').css({visibility: 'hidden', display: 'none'});
        },
        timeout: 500
    });


    $('#fadeZoom1').cycle({ 
        animIn:'fadeZoom',
        fx:    'fadeZoom',
        speed: 1000, 
        sync:  false, 
        delay: 200 
    });

    $('#fadeZoom2').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 700 
    }); 

    $('#fadeZoom3').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1300 
    });

    $('#fadeZoom4').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1800 
    });

    $('#fadeZoom5').cycle({ 
        animIn:'fadeZoom',
        fx:    'fadeZoom',
        speed: 1000, 
        sync:  false, 
        delay: 200 
    });

    $('#fadeZoom6').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 700 
    }); 

    $('#fadeZoom7').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1300 
    });

    $('#fadeZoom8').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1800 
    });

    $('#fadeZoom9').cycle({ 
        animIn:'fadeZoom',
        fx:    'fadeZoom',
        speed: 1000, 
        sync:  false, 
        delay: 200 
    });

    $('#fadeZoom10').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 700 
    }); 

    $('#fadeZoom11').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1300 
    });

    $('#fadeZoom12').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1800 
    });

    $('#fadeZoom13').cycle({ 
        animIn:'fadeZoom',
        fx:    'fadeZoom',
        speed: 1000, 
        sync:  false, 
        delay: 200 
    });

    $('#fadeZoom14').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 700 
    }); 

    $('#fadeZoom15').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1300 
    });

    $('#fadeZoom16').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1800 
    });

    $('#fadeZoom17').cycle({ 
        animIn:'fadeZoom',
        fx:    'fadeZoom',
        speed: 1000, 
        sync:  false, 
        delay: 200 
    });

    $('#fadeZoom18').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 700 
    }); 

    $('#fadeZoom19').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1300 
    });

    $('#fadeZoom20').cycle({ 
        fx:    'fadeZoom', 
        speed: 1000,
        sync:  false, 
        delay: 1800 
    });
});
`.