Results 1 to 3 of 3

Thread: FrogJS - remove galleryimg from main pic

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

    Smile FrogJS - remove galleryimg from main pic

    1) Script Title: FrogJS Image Gallery

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

    3) Describe problem: is there a way to add the following attribute: "galleryimg=no" so that it applies to the main image being dsiplayed? i'd prefer if the save/print/send toolbar wasn't visible.

    thanks,

    lambert

  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

    The image toolbar shipped disabled by default in the more recent versions of IE 6 prior to its being replaced in new installations by IE 7, and is completely absent from IE 7. Here is where in frog.js the main image tag is constructed:

    Code:
    		var mainImage = document.createElement("img");
    		mainImage.setAttribute('id','FrogJSImage');
    		mainImage.style.display = 'none';
    		mainContainer.appendChild(mainImage);
    So, this should work:

    Code:
    		var mainImage = document.createElement("img");
    		mainImage.setAttribute('id','FrogJSImage');
    		mainImage.setAttribute('galleryimg','no',0);
    		mainImage.style.display = 'none';
    		mainContainer.appendChild(mainImage);
    There really isn't much reason to do so though, and the possibility that it will hurt some browsers that don't recognize it.
    - John
    ________________________

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

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

    Default

    Quote Originally Posted by jscheuer1 View Post
    The image toolbar shipped disabled by default in the more recent versions of IE 6 prior to its being replaced in new installations by IE 7, and is completely absent from IE 7. Here is where in frog.js the main image tag is constructed:

    Code:
    		var mainImage = document.createElement("img");
    		mainImage.setAttribute('id','FrogJSImage');
    		mainImage.style.display = 'none';
    		mainContainer.appendChild(mainImage);
    So, this should work:

    Code:
    		var mainImage = document.createElement("img");
    		mainImage.setAttribute('id','FrogJSImage');
    		mainImage.setAttribute('galleryimg','no',0);
    		mainImage.style.display = 'none';
    		mainContainer.appendChild(mainImage);
    There really isn't much reason to do so though, and the possibility that it will hurt some browsers that don't recognize it.
    thanks for the advice. i won't mess with it then.

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
  •