Results 1 to 3 of 3

Thread: FrogJS - Make new thumbnails appear on the left, and old ones on the right

  1. #1
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default FrogJS - Make new thumbnails appear on the left, and old ones on the right

    1) Script Title: FrogJS Image Gallery

    2) Script URL (on DD):
    http://dynamicdrive.com/dynamicindex4/frogjs/index.htm

    3) Describe problem:

    Currently, the new thumbnail appears on the right of the main image, and the old thumbnail appears on the left side of the image.
    How can I make it work the other way? New on the left, old on the right?

    Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Find these:

    Code:
    		var rThumb1 = document.createElement("img");
    		rThumb1.setAttribute('id','FrogJSrightThumb1');
    		rThumb1.style.display = 'none';
    		rThumb1.style.position = 'absolute';
    		rThumb1.style.top = thumbTop;
    		rThumb1.style.right = '0';
    		rThumb1.style.cursor = 'pointer';
    		ribbit.appendChild(rThumb1);
    		
    		var lThumb1 = document.createElement("img");
    		lThumb1.setAttribute('id','FrogJSleftThumb1');
    		lThumb1.style.display = 'none';
    		lThumb1.style.position = 'absolute';
    		lThumb1.style.top = thumbTop;
    		lThumb1.style.left = '0';
    		lThumb1.style.cursor = 'pointer';
    		ribbit.appendChild(lThumb1);
    		
    		var rThumb2 = document.createElement("img");
    		rThumb2.setAttribute('id','FrogJSrightThumb2');
    		rThumb2.style.display = 'none';
    		rThumb2.style.position = 'absolute';
    		rThumb2.style.top = thumbTop;
    		rThumb2.style.right = '0';
    		ribbit.appendChild(rThumb2);
    		
    		var lThumb2 = document.createElement("img");
    		lThumb2.setAttribute('id','FrogJSleftThumb2');
    		lThumb2.style.display = 'none';
    		lThumb2.style.position = 'absolute';
    		lThumb2.style.top = thumbTop;
    		lThumb2.style.left = '0';
    		ribbit.appendChild(lThumb2);
    Replace them with these:

    Code:
    		var rThumb1 = document.createElement("img");
    		rThumb1.setAttribute('id','FrogJSleftThumb1');
    		rThumb1.style.display = 'none';
    		rThumb1.style.position = 'absolute';
    		rThumb1.style.top = thumbTop;
    		rThumb1.style.right = '0';
    		rThumb1.style.cursor = 'pointer';
    		ribbit.appendChild(rThumb1);
    		
    		var lThumb1 = document.createElement("img");
    		lThumb1.setAttribute('id','FrogJSrightThumb1');
    		lThumb1.style.display = 'none';
    		lThumb1.style.position = 'absolute';
    		lThumb1.style.top = thumbTop;
    		lThumb1.style.left = '0';
    		lThumb1.style.cursor = 'pointer';
    		ribbit.appendChild(lThumb1);
    		
    		var rThumb2 = document.createElement("img");
    		rThumb2.setAttribute('id','FrogJSleftThumb2');
    		rThumb2.style.display = 'none';
    		rThumb2.style.position = 'absolute';
    		rThumb2.style.top = thumbTop;
    		rThumb2.style.right = '0';
    		ribbit.appendChild(rThumb2);
    		
    		var lThumb2 = document.createElement("img");
    		lThumb2.setAttribute('id','FrogJSrightThumb2');
    		lThumb2.style.display = 'none';
    		lThumb2.style.position = 'absolute';
    		lThumb2.style.top = thumbTop;
    		lThumb2.style.left = '0';
    		ribbit.appendChild(lThumb2);
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I Thank you again for all your time.
    You have helped me much.

    As you know JS so well, do you have your own scripts?

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
  •