View Full Version : FrogJS - remove galleryimg from main pic
radiofriendlybox
02-06-2008, 06:49 PM
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
jscheuer1
02-06-2008, 07:32 PM
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:
var mainImage = document.createElement("img");
mainImage.setAttribute('id','FrogJSImage');
mainImage.style.display = 'none';
mainContainer.appendChild(mainImage);
So, this should work:
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.
radiofriendlybox
02-06-2008, 10:44 PM
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:
var mainImage = document.createElement("img");
mainImage.setAttribute('id','FrogJSImage');
mainImage.style.display = 'none';
mainContainer.appendChild(mainImage);
So, this should work:
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.