SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Use same script on multiple divs

    I am trying to use the Conveyor Belt slideshow script, from Dynamic Drive.
    http://www.dynamicdrive.com/dynamici...rightslide.htm

    I have two DIVS, one on top of the other, and I would like to use this script in both places, on the same page. For the life of me, and many, many, many hours later, I cannot get it to work.

    I am a total noob to javascript, so my helpless approach was to sit there and change every variable, one at a time, and see if it worked. Dumb, I know, but I am desperate.

    Thanks in advance.

  2. #2
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    660
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Couldn't you just use 2 Classes with the same name, and just alter a portion of the DD code to target the Class names?

  3. #3
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply, however I found an example site of using two, so I got it working.

    http://home.comcast.net/~jscheuer1/s...onveyor_oo.htm


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
  •