Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next
Gallery Viewer
Author Message
DVD Profiler Unlimited RegistrantStar ContributorRomzarah
Registered: January 11, 2008
United States Posts: 168
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Didn't get any help posting this in the Tec thread so I will try it here.

I have a HTML Gallery Viewer setup in my layout. As of the new release of DVDP the Gallery Viewer no longer works. It used to open a popup like the cover images when I clicked on a image in the gallery, now it just opens a blank IE page with all the navigation buttons as if you wanted to browse the internet. I should be just a popup with nothing but the image. Has anyone found a fix for this? Any help would be nice. Thanks.
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
I haven't used the HTML Window version of this since Ken added one to the main program... as I personally like ken's version a little better. So sorry... can't be much help other then to tell you the HTML Window version was created by xyrano... maybe if you PM him he can help you out.
Pete
DVD Profiler Unlimited RegistrantStar ContributorRomzarah
Registered: January 11, 2008
United States Posts: 168
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Thanks I will look into it...
DVD Profiler Unlimited RegistrantAntares
Registered: May 26, 2007
Reputation: High Rating
United States Posts: 599
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
For anyone interested in still using this plug-in. I asked Xyrano if he could tweak the code so that the pictures opened in the same window. Unfortunately, he wasn't able to get it to do that, but, what he did was make it so it opens the image files in whatever program you use on your PC to view images.

For me, this is much better than the old way of having a browser open up the single image. I use Windows Picture and Fax viewer for my jpg and gif files, and now I can scroll through them.


Here's the new code...

Quote:
<html>
<head>
<style type="text/css">
<!--
* { color: white; font-family: verdana; font-size: 10pt; }
html,body { margin: 0; padding: 0; background-color: rgb(0, 0, 83); }
body { background-repeat: repeat-x; background-image: url($DPIMAGES.bgimage.jpg); }
.title { font-size: 12pt; font-weight: bold; margin-top: 15pt; margin-bottom: 15pt; width: 100%; text-align: center; }
.sub-categories { padding-left: 2pt; padding-bottom: 1pt; font-size: 11pt; font-weight: bold; margin-top: 5pt; margin-left: 4pt; clear: both; }
.images { padding: 5pt; }
span { margin: 5pt; background-color: black; border-width: 5px; border-style: double; }
span.off { border-color: gray; }
span.on { border-color: white; }
img { cursor: hand; }
-->
</style>
<script type="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
// -------- Configuration block - Start --------
var gsl = "E:\\Gallery Viewer\\";
var loc = true; // 5050582449433? var loc = false;. 5050582449433.4? var loc = true;.
var ist = 0; // First gallery image name: 00.jpg? var ist = 0;. 01.jpg? var ist = 1;
var zro = true; // 00.jpg/01.jpg? var zro = true;. 0.jpg/1.jpg? var zro = false;.
var tnv = 180; // ThumbNail Value
var bw = true; // tnv by width? var bw = true;. tnv by height? var bw = false;.

// Position and Clipping
var pos = false;
var cl1 = false;
var cl2 = false;
var cl3 = false;
var sp5 = false;
var sp7 = false;
var sp9 = false;

// Visual
var ipa = 5; // Padding for images
var ima = 5; // Margin for thumbnails
var bor = 3; // Thumbnail border thickness. No borders? var bor = 0;.

// Sub-categories
// -----------------------------------------------
var sc = new Array([0, "---", "Don't thouch this line!", false],
// -----------------------------------------------
// [Line number, "Sub-category name", "Filename-prefix", ...the rest is runtime stuff no thouchy mkay!  ...],
  [ 1, "Image Gallery", "", false, false, []],
  [ 2, "Movie Posters", "mp-", false, false, []],
  [ 3, "Promotional Photos", "promo-", false, false, []],
  [ 4, "Production Photos", "prod-", false, false, []],
  [ 5, "Screen Caps", "sc-", false, false, []],
  [ 6, "Disc Art", "da-", false, false, []],
  [ 7, "Menu Shots", "ms-", false, false, []],
  [ 8, "Desktop Wallpapers (800x640)", "wp1-", false, false, []],
  [ 9, "Desktop Wallpapers (1024x768)", "wp2-", false, false, []],
  [10, "Desktop Wallpapers (1280x1024)", "wp3-", false, false, []],
  [11, "Desktop Wallpapers (1600x1200)", "wp4-", false, false, []],
// -----------------------------------------------
  ["@"]
);
// -----------------------------------------------

// Tags
var useTags = true;
var tagHierarchy = "9: Preferences/Gallery Viewer/"
var tagByHeight = tagHierarchy + "By height"; // Controls bw from a tag
var tagPos = tagHierarchy + "Position image"; // Controls pos from a tag
var tagCl1 = tagHierarchy + "Clip/1"; // Controls cl1 from a tag
var tagCl2 = tagHierarchy + "Clip/2"; // Controls cl2 from a tag
var tagCl3 = tagHierarchy + "Clip/3"; // Controls cl3 from a tag
var tagSp5 = tagHierarchy + "Split tnv by/5"; // Controls sp5 from a tag
var tagSp7 = tagHierarchy + "Split tnv by/7"; // Controls sp7 from a tag
var tagSp9 = tagHierarchy + "Split tnv by/9"; // Controls sp9 from a tag
// -------- Configuration block - The End --------
var int = DP_Notes.indexOf("<gallery=");
// 1.6.1 new
var tit = DP_Title;
if (int != -1) {

  // Clean Locality from UPC?
  // 1.6.1 moved
  var upc = DP_UPC;  if (loc == false && upc.indexOf(".") != -1)  upc = upc.substring(0, upc.lastIndexOf("."));
  gsl += upc;

  // 1.6 new
  sc.row = 0;  sc.nme = 1;  sc.pfx = 2;  sc.has = 3;  sc.did = 4;  sc.img = 5;

  // Tags
  // 1.6.1 moved
  if (useTags == true) for (var i = 0;  i < DP_Tags.length;  i++) {
 
    if (tagByHeight.length != 0 && DP_Tags[i].toLowerCase() == tagByHeight.toLowerCase()) bw = false;
    if (tagPos.length != 0 && DP_Tags[i].toLowerCase() == tagPos.toLowerCase()) pos = true;
    if (tagCl1.length != 0 && DP_Tags[i].toLowerCase() == tagCl1.toLowerCase()) cl1 = true;
    if (tagCl2.length != 0 && DP_Tags[i].toLowerCase() == tagCl2.toLowerCase()) cl2 = true;
    if (tagCl3.length != 0 && DP_Tags[i].toLowerCase() == tagCl3.toLowerCase()) cl3 = true;
    if (tagSp5.length != 0 && DP_Tags[i].toLowerCase() == tagSp5.toLowerCase()) sp5 = true;
    if (tagSp7.length != 0 && DP_Tags[i].toLowerCase() == tagSp7.toLowerCase()) sp7 = true;
    if (tagSp9.length != 0 && DP_Tags[i].toLowerCase() == tagSp9.toLowerCase()) sp9 = true;
  }
}
// 1.3 new
function visual() {

  if (int != -1) {

    var ele = document.getElementById('thumbnails');
    ele.style.padding = ipa + 'px';
    for (var i = 0; i < document.getElementsByTagName('span').length; i++) {

      var ele = document.getElementsByTagName('span')[i];
      ele.style.margin = ima + 'px';
      ele.style.borderWidth = bor + 'px';
    }
    if (pos) positionImages();
  }
}

// 1.6 updated
function updateScArray(str, k) {

  // Update sc array
  var cav = str.split("=");
  var test = cav[0].match(/[a-z]/g);
  if (test == null) sc[parseInt(cav[0])][sc.has] = true;
  if (cav[1].indexOf(":") != -1) { // images in range :
 
    var tmp = cav[1].split(":");
    var tmp2 = new Array();
    for (var i = parseInt(tmp[0]); i <= parseInt(tmp[1]); i++) tmp2.push(i);
    (test == null) ? sc[parseInt(cav[0])][sc.img] = tmp2: pushCustomName(cav[0], tmp2);
  } else if (cav[1].indexOf(";") != -1) { // jumps ;
 
    (test == null) ? sc[parseInt(cav[0])][sc.img] = cav[1].split(";"): pushCustomName(cav[0], cav[1].split(";"));
  } else {
    (test == null) ? sc[parseInt(cav[0])][sc.img] = new Array(cav[1]): pushCustomName(cav[0], new Array(cav[1]));
  }
  cav = null;
}

// 1.6 updated
function pushCustomName(str, arr) {

  var csc = (str.indexOf("¤") != -1) ? str.split("¤"): new Array(str, '');
  sc.pop();
  var newArray = new Array(sc.length, csc[0], csc[1], true, false);
  csc = null;
  newArray.push(arr);
  sc.push(newArray);
  newArray = null;
  sc.push("@");
}

// 1.6 updated
function imageFactory(fnp, i) {

  var img = (zro && i <= 9) ? '0' + i: i;
  if (fnp != '') img = fnp + img;
  var imp = gsl + "\\" + img + ".jpg";
//  var span = '<span style="';
  var span = '<a href="' + imp + '" target="_new"><span style="';
  span += ((bw) ? ' width': 'height') +': ' + tnv + ';';
  if (pos && (cl1 || cl2 || cl3)) {
    span += ' ' + ((bw) ? 'height': ' width') + ': ';
    var i1 = parseInt((sp9) ? 9: ((sp7) ? 7: ((sp5) ? 5: 3)));
    var i2 = parseInt((cl3) ? i1 - 3: ((cl2) ? i1 - 2: i1 - 1));
    span += parseInt((i2) ? (tnv / i1) * i2: (tnv / i1));
    span += '; overflow: hidden;';
  }
  span += '"';
  span += ' onMouseOver="flashIt(this, true); return false;"';
  span += ' onMouseOut="flashIt(this, false); return false;"';
  span += ' class="off">';
  var hit = '<img src="' + imp + '"';
  hit += (bw) ? ' width': ' height';
//  hit += '="' + tnv + '" title="' + imp + '" onClick="newWindow(\'' + img + '\'); return false;">';
  hit += '="' + tnv + '" title="Right click to open: ' + imp + '">';
//  return span + hit + '</span>';
  return span + hit + '</span></a>';
}

// 1.3 new
function positionImages() {

  if (cl1 || cl2 || cl3) for (var i = 0; i < document.getElementsByTagName('img').length; i++) {

    var img = document.getElementsByTagName('img')[i];
    var spa = document.getElementsByTagName('span')[i];
    var sp = parseInt((!bw) ? spa.style.width: spa.style.height);
    var st = sp - ((!bw) ? img.width: img.height);
    img.style.position = 'absolute';
    if (bw) img.style.top = (st / 2 - bor) + 'px';
    if (!bw) img.style.left = (st / 2 - bor) + 'px';
  }
}

// 1.3 moved
function newWindow(img) {

  var imp = gsl + "\\" + img + ".jpg";
  var doc = '<html><body style="margin:0;padding:0;background-color:black;"><img src="' + imp + '"></body></html>';
  var win = window.open("", 'Gallery', 'scrollbars=no, resizable, dependent, status=no');
  win.document.write(doc);
  win.document.close();
  var imw = win.document.images[0].width;
  var imh = win.document.images[0].height;
  win.resizeTo(imw + 12, imh + 38);
  win.focus();
}

// 1.3 new
function flashIt(obj, bool) { obj.className = (bool) ? 'on': 'off'; }
//-->
</script>
</head>
<body scroll="auto" onload="visual();">
<script type="text/javascript">
<!--
document.write('<a id="local-gallery-folder" class="title"' +
' href="file:///' + gsl + '" target="_blank">' + tit + '</a>' +
'<div id="thumbnails" class="images">');

if (int != -1) {

  // Get image count and sub-categories.
  // 1.6 updated
  var cat = "";
  var ims = DP_Notes.substring(int, DP_Notes.indexOf(">", int));
  ims = ims.replace("<gallery=","");
  if (ims.indexOf("?") != -1) {
 
    sc[0][sc.has] = true;
    cat = ims.substring(ims.indexOf("?") + 1, ims.length);
    if (cat.indexOf("&") != -1) {
      var caa = cat.split("&");
      for (var i = 0; i < caa.length; i++) updateScArray(caa[i], i);
      caa = null;
    } else updateScArray(cat, 0);
    cat = null;
  }
  ims = parseInt(ims);

  // Insert Sub-categories
  // 1.6.2 updated
  if (sc[0][sc.has] == true) {
 
    for (var j = 1; j < sc.length; j++) if (sc[j][sc.has] == true && sc[j][sc.did] == false) {
   
      document.write('<div class="sub-categories">' + sc[j][sc.nme] + '</div>');
      sc[j][sc.did] = true;
      for (var i = 0; i < sc[j][sc.img].length; i++) document.write(imageFactory(sc[j][sc.pfx], sc[j][sc.img][i]));
    }
  } else for (var i = ist; i < (ims + ist); i++) document.write(imageFactory('', i));
} else {
  document.write("No Gallery Available!");
}
document.write("</div>");
//-->
</script>
</body>
</html>


The only downside is that you have to right-click the image and select Open Link to open the image file.

Once again...Thanks Xyrano
 Last edited: by Antares
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Here is an update that should take care of that last problem

Quote:

<html>
<head>
<style type="text/css">
<!--
* { color: white; font-family: verdana; font-size: 10pt; }
html,body { margin: 0; padding: 0; background-color: rgb(0, 0, 83); }
body { background-repeat: repeat-x; background-image: url($DPIMAGES.bgimage.jpg); }
.title { font-size: 12pt; font-weight: bold; margin-top: 15pt; margin-bottom: 15pt; width: 100%; text-align: center; }
.sub-categories { padding-left: 2pt; padding-bottom: 1pt; font-size: 11pt; font-weight: bold; margin-top: 5pt; margin-left: 4pt; clear: both; }
.images { padding: 5pt; }
span { margin: 5pt; background-color: black; border-width: 5px; border-style: double; }
span.off { border-color: gray; }
span.on { border-color: white; }
img { cursor: hand; }
a { border: 5px; }
-->
</style>
<script type="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
/*
######## Gallery Viewer ########
@title - Gallery Viewer
@filename - GalleryViewer_1.6.3.html
@version - 1.6.3
@date - 2010-04-20
@author - xyrano
@dependencies - DVD Profiler v3+, IE.

@1.6.3 Update
- Updated imageFactory with a link. The javascript function `window.open´, stopped working.
  Images now open in default local program associated with jpg or gif.
- Removed newWindow function.

@1.6.2 Update
- Corrected issue with backward compatibility, gallery now shows

@1.6.1 Update
- Corrected issue with loc var not being handled in title link

@1.6 Update
- Added filename prefix support for Sub-categories
- Added filename prefix support for Custom Sub-categories
- Added link to title, to open explorer and navigate to the gallery

@1.5 Update
- Added Custom Sub-category support

@1.4.1 Update
- Corrected issue in Sub-category support

@1.4 Update
- Added Sub-category support

@1.3 Update
- Added post-positioning of the img tag functionality
- Added Thumbnail borders and onMouse event listeners
- Added background image support in style sheet.
- Added clip options 1, 2 and 3 (min pos=true and cl1=true else nothing)
- Added split options: 5, 7 and 9 of the tnv value, default is 3
- Added option for '0' on image names 0/1-9
- Updated Tag support with clip and split options
- Cleaned the title

@1.2 Update
- Added option to choose first gallery image name (start from number)
- Added option to thumbnail width/height
- Added Tag support

@1.1 Update
- Configuration block added
- gsl (Gallery Storage Location) changed see loc.
- loc Locality option added.

@1.0 inital release
*/
// -------- Configuration block - Start --------
var gsl = "E:\\DVD Profiler Data\\Gallery\\";
var loc = true; // 5050582449433? var loc = false;. 5050582449433.4? var loc = true;.
var ist = 1; // First gallery image name: 00.jpg? var ist = 0;. 01.jpg? var ist = 1;
var zro = true; // 00.jpg/01.jpg? var zro = true;. 0.jpg/1.jpg? var zro = false;.
var tnv = 128; // ThumbNail Value
var bw = true; // tnv by width? var bw = true;. tnv by height? var bw = false;.

// Position and Clipping
var pos = false;
var cl1 = false;
var cl2 = false;
var cl3 = false;
var sp5 = false;
var sp7 = false;
var sp9 = false;

// Visual
var ipa = 5; // Padding for images
var ima = 5; // Margin for thumbnails
var bor = 3; // Thumbnail border thickness. No borders? var bor = 0;.

// Sub-categories
// -----------------------------------------------
var sc = new Array([0, "---", "Don't thouch this line!", false],
// -----------------------------------------------
// [Line number, "Sub-category name", "Filename-prefix", ...the rest is runtime stuff no thouchy mkay! ...],
  [ 1, "Image Gallery", "", false, false, []],
  [ 2, "Movie Posters", "mp-", false, false, []],
  [ 3, "Promotional Photos", "promo-", false, false, []],
  [ 4, "Production Photos", "prod-", false, false, []],
  [ 5, "Screen Caps", "sc-", false, false, []],
  [ 6, "Disc Art", "da-", false, false, []],
  [ 7, "Menu Shots", "ms-", false, false, []],
  [ 8, "Desktop Wallpapers (800x640)", "wp1-", false, false, []],
  [ 9, "Desktop Wallpapers (1024x768)", "wp2-", false, false, []],
  [10, "Desktop Wallpapers (1280x1024)", "wp3-", false, false, []],
  [11, "Desktop Wallpapers (1600x1200)", "wp4-", false, false, []],
// -----------------------------------------------
  ["@"]
);
// -----------------------------------------------

// Tags
var useTags = true;
var tagHierarchy = "9: Preferences/Gallery Viewer/"
var tagByHeight = tagHierarchy + "By height"; // Controls bw from a tag
var tagPos = tagHierarchy + "Position image"; // Controls pos from a tag
var tagCl1 = tagHierarchy + "Clip/1"; // Controls cl1 from a tag
var tagCl2 = tagHierarchy + "Clip/2"; // Controls cl2 from a tag
var tagCl3 = tagHierarchy + "Clip/3"; // Controls cl3 from a tag
var tagSp5 = tagHierarchy + "Split tnv by/5"; // Controls sp5 from a tag
var tagSp7 = tagHierarchy + "Split tnv by/7"; // Controls sp7 from a tag
var tagSp9 = tagHierarchy + "Split tnv by/9"; // Controls sp9 from a tag
// -------- Configuration block - The End --------
var int = DP_Notes.indexOf("<gallery=");

// 1.6.1 new
var tit = DP_Title;
if (int != -1) {

  // Clean Locality from UPC?
  // 1.6.1 moved
  var upc = DP_UPC;  if (loc == false && upc.indexOf(".") != -1)  upc = upc.substring(0, upc.lastIndexOf("."));
  gsl += upc;

  // 1.6 new
  sc.row = 0;  sc.nme = 1;  sc.pfx = 2;  sc.has = 3;  sc.did = 4;  sc.img = 5;

  // Tags
  // 1.6.1 moved
  if (useTags == true) for (var i = 0;  i < DP_Tags.length;  i++) {
 
    if (tagByHeight.length != 0 && DP_Tags[i].toLowerCase() == tagByHeight.toLowerCase()) bw = false;
    if (tagPos.length != 0 && DP_Tags[i].toLowerCase() == tagPos.toLowerCase()) pos = true;
    if (tagCl1.length != 0 && DP_Tags[i].toLowerCase() == tagCl1.toLowerCase()) cl1 = true;
    if (tagCl2.length != 0 && DP_Tags[i].toLowerCase() == tagCl2.toLowerCase()) cl2 = true;
    if (tagCl3.length != 0 && DP_Tags[i].toLowerCase() == tagCl3.toLowerCase()) cl3 = true;
    if (tagSp5.length != 0 && DP_Tags[i].toLowerCase() == tagSp5.toLowerCase()) sp5 = true;
    if (tagSp7.length != 0 && DP_Tags[i].toLowerCase() == tagSp7.toLowerCase()) sp7 = true;
    if (tagSp9.length != 0 && DP_Tags[i].toLowerCase() == tagSp9.toLowerCase()) sp9 = true;
  }
}

// 1.3 new
function visual() {

  if (int != -1) {

    var ele = document.getElementById('thumbnails');
    ele.style.padding = ipa + 'px';
    for (var i = 0; i < document.getElementsByTagName('span').length; i++) {

      var ele = document.getElementsByTagName('span')[i];
      ele.style.margin = ima + 'px';
      ele.style.borderWidth = bor + 'px';
    }
    if (pos) positionImages();
  }
}

// 1.6 updated
function updateScArray(str, k) {

  // Update sc array
  var cav = str.split("=");
  var test = cav[0].match(/[a-z]/g);
  if (test == null) sc[parseInt(cav[0])][sc.has] = true;
  if (cav[1].indexOf(":") != -1) { // images in range :
 
    var tmp = cav[1].split(":");
    var tmp2 = new Array();
    for (var i = parseInt(tmp[0]); i <= parseInt(tmp[1]); i++) tmp2.push(i);
    (test == null) ? sc[parseInt(cav[0])][sc.img] = tmp2: pushCustomName(cav[0], tmp2);
  } else if (cav[1].indexOf(";") != -1) { // jumps ;
 
    (test == null) ? sc[parseInt(cav[0])][sc.img] = cav[1].split(";"): pushCustomName(cav[0], cav[1].split(";"));
  } else {
    (test == null) ? sc[parseInt(cav[0])][sc.img] = new Array(cav[1]): pushCustomName(cav[0], new Array(cav[1]));
  }
  cav = null;
}

// 1.6 updated
function pushCustomName(str, arr) {

  var csc = (str.indexOf("¤") != -1) ? str.split("¤"): new Array(str, '');
  sc.pop();
  var newArray = new Array(sc.length, csc[0], csc[1], true, false);
  csc = null;
  newArray.push(arr);
  sc.push(newArray);
  newArray = null;
  sc.push("@");
}

// 1.6.3 updated
function imageFactory(fnp, i) {

  var img = (zro && i <= 9) ? '0' + i: i;
  if (fnp != '') img = fnp + img;
  var imp = gsl + "\\" + img + ".jpg";
  var span = '<span style="';
  span += ((bw) ? ' width': 'height') +': ' + tnv + ';';
  if (pos && (cl1 || cl2 || cl3)) {
    span += ' ' + ((bw) ? 'height': ' width') + ': ';
    var i1 = parseInt((sp9) ? 9: ((sp7) ? 7: ((sp5) ? 5: 3)));
    var i2 = parseInt((cl3) ? i1 - 3: ((cl2) ? i1 - 2: i1 - 1));
    span += parseInt((i2) ? (tnv / i1) * i2: (tnv / i1));
    span += '; overflow: hidden;';
  }
  span += '"';
  span += ' onMouseOver="flashIt(this, true); return false;"';
  span += ' onMouseOut="flashIt(this, false); return false;"';
  span += ' class="off">';
  var hit = '<a href="' + imp + '" target="_new">';
  hit += '<img src="' + imp + '"';
  hit += (bw) ? ' width': ' height';
  hit += '="' + tnv + '" title="' + imp + '" border="0">';
  hit += '</a>';
  return span + hit + '</span>';
}

// 1.3 new
function positionImages() {

  if (cl1 || cl2 || cl3) for (var i = 0; i < document.getElementsByTagName('img').length; i++) {

    var img = document.getElementsByTagName('img')[i];
    var spa = document.getElementsByTagName('span')[i];
    var sp = parseInt((!bw) ? spa.style.width: spa.style.height);
    var st = sp - ((!bw) ? img.width: img.height);
    img.style.position = 'absolute';
    if (bw) img.style.top = (st / 2 - bor) + 'px';
    if (!bw) img.style.left = (st / 2 - bor) + 'px';
  }
}

// 1.3 new
function flashIt(obj, bool) { obj.className = (bool) ? 'on': 'off'; }
//-->
</script>
</head>
<body scroll="auto" onload="visual();">
<script type="text/javascript">
<!--
document.write('<a id="local-gallery-folder" class="title"' +
' href="file:///' + gsl + '" target="_blank">' + tit + '</a>' +
'<div id="thumbnails" class="images">');

if (int != -1) {

  // Get image count and sub-categories.
  // 1.6 updated
  var cat = "";
  var ims = DP_Notes.substring(int, DP_Notes.indexOf(">", int));
  ims = ims.replace("<gallery=","");
  if (ims.indexOf("?") != -1) {
 
    sc[0][sc.has] = true;
    cat = ims.substring(ims.indexOf("?") + 1, ims.length);
    if (cat.indexOf("&") != -1) {
      var caa = cat.split("&");
      for (var i = 0; i < caa.length; i++) updateScArray(caa[i], i);
      caa = null;
    } else updateScArray(cat, 0);
    cat = null;
  }
  ims = parseInt(ims);

  // Insert Sub-categories
  // 1.6.2 updated
  if (sc[0][sc.has] == true) {
 
    for (var j = 1; j < sc.length; j++) if (sc[j][sc.has] == true && sc[j][sc.did] == false) {
   
      document.write('<div class="sub-categories">' + sc[j][sc.nme] + '</div>');
      sc[j][sc.did] = true;
      for (var i = 0; i < sc[j][sc.img].length; i++) document.write(imageFactory(sc[j][sc.pfx], sc[j][sc.img][i]));
    }
  } else for (var i = ist; i < (ims + ist); i++) document.write(imageFactory('', i));
} else {
  document.write("No Gallery Available!");
}
document.write("</div>");
//-->
</script>
</body>
</html>
DVD Profiler Unlimited RegistrantAntares
Registered: May 26, 2007
Reputation: High Rating
United States Posts: 599
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
This works so much better than the original version now! 

Green Arrow!
 Last edited: by Antares
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next