SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: js conflict

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    js conflict

    Hi, I am using 2 scripts but they are conflicting. I've tried using body onload for one or both but I guess I'm doing it wrong or it doesn't work. Any advice?

    <script language="javascript" type="text/ecmascript">
    window.addEvent('domready',function(){
    var myLogin = new mooSlide2({ slideSpeed: 1000, fadeSpeed: 1000, toggler:'login', content: 'loginPanel', height:230, close: false, effects:Fx.Transitions.Sine.easeOut , from:'top'});
    //optional: AutoStart the slider on page load:
    //MyLogin.run();
    $('close').addEvent('click', function(e){
    e = new Event(e);
    myLogin.clearit();
    e.stop();
    });
    });

    </script>


    <script type="text/javascript">
    $(function() {
    $('#gallery a').lightBox();
    });
    </script>

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why are you using "text/ecmascript" as your JS type???
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)


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
  •