Results 1 to 3 of 3

Thread: FrogJS - add extra function to thumbnails?

  1. #1
    Join Date
    Sep 2007
    Location
    west sacramento
    Posts
    25
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Question FrogJS - add extra function to thumbnails?

    1) Script Title: FrogJS Image Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ogjs/index.htm

    3) Describe problem: The script uses the "rel" attribute to assign a hyperlink to the main image. Can this (that is, assigning a hyperlink) be done to the thumbnails as well? The reason I ask is because I want to be able to run a javascript when the thumbnails are clicked on. Thanks.

  2. #2
    Join Date
    Mar 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Add more than 1 gallery

    Quote Originally Posted by radiofriendlybox View Post
    1) Script Title: FrogJS Image Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ogjs/index.htm

    3) Describe problem: The script uses the "rel" attribute to assign a hyperlink to the main image. Can this (that is, assigning a hyperlink) be done to the thumbnails as well? The reason I ask is because I want to be able to run a javascript when the thumbnails are clicked on. Thanks.
    Hi, I want to show differents set of pictures showing and hiding divs, But i have a problem with the FrogJs div. Is it possible to use it to show its?? Y couldn't do it!!!!

  3. #3
    Join Date
    Sep 2007
    Location
    west sacramento
    Posts
    25
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by matias View Post
    Hi, I want to show differents set of pictures showing and hiding divs, But i have a problem with the FrogJs div. Is it possible to use it to show its?? Y couldn't do it!!!!
    are you asking how to add more than one gallery using the frog script? if so, you need to do the following:

    1. copy the frog.js script and rename it (for example, frog2.js)
    2. go into the code and add the number "2" after every instance of "Frog" even if it is part of a longer string of charcters (for example, "FrogJSLoadingAni" would become "Frog2JSLoadingAni")
    3. add the number "2" after every instance of "imageArray"
    4. then you'll need to change the ID tag in the html with the appropriate name (i.e., "Frog2JS")


    that should be it. please keep in mind that the number "2" is quite arbitrary. you can rename the code however you want as long as it is consistent.
    Last edited by radiofriendlybox; 03-31-2008 at 10:30 PM. Reason: added additional instructions

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
  •