SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Two JS codes in one page, only bottom working

    I am trying to use these two js codes in one page:


    http://acrisdesign.com/2010/03/jquer...on-hoverclick/

    http://www.huddletogether.com/projects/lightbox2/

    They both work perfectly fine except when both linked up at the same time. Only the last one will work. I've tried to find how the codes are working when the page loads in order to fix that problem but I cant figure it out for these two specific codes.

    Thanks.

  2. #2
    SitePoint Addict svcghost's Avatar
    Join Date
    Oct 2010
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So when you try to implement them both, then the first one does not work AT ALL? So hovering or clicking does absolutely nothing?

    If you find that clicking / hovering does SOMETHING, but incorrectly, then the two scripts may be conflicting with each other due to variable names or ID's that are the same.

  3. #3
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is right, the first does not do anything at all.


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
  •