Click here to Skip to main content
15,896,428 members
Articles / Web Development / HTML

Electronic photo album in HTML HELP

Rate me:
Please Sign up or sign in to vote.
4.91/5 (7 votes)
13 Nov 20026 min read 236.4K   4.2K   69  
A complete electronic photo album in an HTML Help (.CHM) file with a front page, index, slide show and legend/about page.
  • htmlhelpdemoalbum_src_light.zip
    • htmlhelpdemoalbum_src_light
      • Album
        • about.htm
        • album.css
        • Album.hhp
        • album.js
        • encode.bat
        • images
          • about.gif
          • about.jpg
          • about_over.gif
          • about_x.gif
          • back.jpg
          • bottom.jpg
          • goback.gif
          • goback_over.gif
          • goback_x.gif
          • gohome.gif
          • gohome_over.gif
          • gohome_x.gif
          • gotothumbpage.gif
          • gotothumbpage_over.gif
          • gotothumbpage_x.gif
          • imgnotfound100x75.gif
          • left.jpg
          • next.gif
          • prev.gif
          • right.jpg
          • slideshow.gif
          • slideshow_over.gif
          • slideshow_r1.gif
          • slideshow_r2.gif
          • slideshow_r3.gif
          • slideshow_running.gif
          • slideshow_x.gif
          • top.jpg
          • transp100x75.gif
          • transp400x300.gif
        • lang.js
        • langen.js
        • langnl.js
        • photos.js
        • photos400x300
          • 001.jpg
          • 002.jpg
          • composition.jpg
        • pic.htm
        • SCRENC.EXEVV
        • start.htm
        • thumbpic.htm
  • htmlhelpdemoalbum_src.zip
    • Album
      • about.htm
      • album.css
      • Album.hhp
      • album.js
      • encode.bat
      • images
        • about.gif
        • about.jpg
        • about_over.gif
        • about_x.gif
        • back.jpg
        • bottom.jpg
        • goback.gif
        • goback_over.gif
        • goback_x.gif
        • gohome.gif
        • gohome_over.gif
        • gohome_x.gif
        • gotothumbpage.gif
        • gotothumbpage_over.gif
        • gotothumbpage_x.gif
        • imgnotfound100x75.gif
        • left.jpg
        • next.gif
        • prev.gif
        • right.jpg
        • slideshow.gif
        • slideshow_over.gif
        • slideshow_r1.gif
        • slideshow_r2.gif
        • slideshow_r3.gif
        • slideshow_running.gif
        • slideshow_x.gif
        • top.jpg
        • transp100x75.gif
        • transp400x300.gif
      • lang.js
      • langen.js
      • langnl.js
      • photos.js
      • photos400x300
        • 001.jpg
        • 002.jpg
        • 003.jpg
        • 004.jpg
        • 005.jpg
        • 006.jpg
        • 007.jpg
        • 008.jpg
        • 009.jpg
        • 010.jpg
        • 011.jpg
        • 012.jpg
        • 013.jpg
        • 014.jpg
        • 015.jpg
        • 016.jpg
        • 017.jpg
        • 018.jpg
        • 019.jpg
        • 020.jpg
        • 021.jpg
        • 022.jpg
        • 023.jpg
        • 024.jpg
        • 025.jpg
        • 026.jpg
        • composition.jpg
      • pic.htm
      • SCRENC.EXEVV
      • start.htm
      • thumbpic.htm
  • htmlhelpdemoalbum.zip
    • victorsdemoalbum.chm
<!--
/////////////////////////////////////////////////////////
// Online Photo Album 2.3
// Copyright (C) 1999 Victor Vogelpoel
// victorv@ergens.com
/////////////////////////////////////////////////////////

//**Start Encode**



function bindToolTips()
{
	//alert(document.all.SLIDESHOWBTN);
	if (document.all.STARTBTN)
	{
		// OK, the control panel should be present
		document.all.STARTBTN.title=sStartBtnTitle;
		document.all.THUMBPAGEBTN.title=sThumbBtnTitle;
		document.all.SLIDESHOWBTN.title=sSlideShowBtnTitle;
		document.all.ABOUTBTN.title=sAboutBtnTitle;
	}
//	  else
//		  alert("NO document.all.STARTBTN");

	if (document.all.PREVPIC)
		document.all.PREVPIC.title=sPrevPicTitle;
	if (document.all.NEXTPIC)
		document.all.NEXTPIC.title=sNextPicTitle;
	if (document.all.PREVPICPAGE)
		document.all.PREVPICPAGE.title=sPrevPageTitle;
	if (document.all.PREVPICPAGE)
		document.all.NEXTPICPAGE.title=sNextPageTitle;


}






 



//////////////////////////////////////////////////////////////////////////////////////
// Parameter  API
// Copyright 1998, Just4Fun Productions
// Available at :  http://people.zeelandnet.nl/rpb	- in the Javascript section
// Last Updated Sep. 3, 1999 by VV.
// In order to use this code you must keep this disclaimer
//
// Sept 99:
// Extended by Victor Vogelpoel (victor.vogelpoel@wxs.nl)
// in order to use the '#' as parameter passing option as well.
// This will enable parameter passing in HTMLHelp based systems.
 
 URLparameters = "";
 Myparams = -1;

 function getParameter(checkOn)
 {
	for (cnt=0; cnt<Myparams;)
	{
		pos 	=-2;
		tempw = "";
		text	 =URLparameters;
	
		for (i=0; i<=cnt;)
		{
			pos2= pos+2;
			pos= text.indexOf('&',pos2);
			tempw=text.substring(pos,pos2-1);
			i++;
		}
		text=tempw;
		pos=text.indexOf('=',0);
		if (pos!=-1)
		{
			tempw=text.substring(pos,0);
		}
		tempw=tempw.toLowerCase();
		if (tempw==checkOn.toLowerCase())
		{
			pos = -2;
			tempv = "";
			text = URLparameters;
			for (i=0; i<=cnt;)
			{
				pos2=pos+2;
				pos=text.indexOf('&',pos2);
				tempv=text.substring(pos,pos2-1);
				i++;
			}
			text=tempv;
			pos2=text.indexOf('=',0)+1;
			if (pos2!=-1)
			{
				tempv=text.substring(pos2);
				tempv=tempv.toLowerCase();
			} 
			else
			{ 
				tempv='' 
			}
			pos=-2;
			text=tempv; 
			if (text.indexOf('%20')>0)
			{
				pos=text.indexOf('%20',0);
				tmp=text.substring(0,pos2-4)+' '+text.substring(pos2-1,text.length);
				text=tempv;
			}
			return tempv;
		}
	cnt++;
	}
	return '';
 }

 // Now we initialise some settings
 // This part must allways be called before anything else
 function initParameters() {
	if ((navigator.appName!='Netscape')&&(navigator.appVersion<4))
	{
		// Older browsers
		URLparameters=document.location;
		if (URLparameters.indexOf('?')>-1)
		{
			URLparameters=URLparameters.substring(URLparameters.indexOf('?')+1,URLparameters.length);
		}

		// VV: handle passing parameters using the '#' tag after the URL.
		if (URLparameters.indexOf('#')>-1)
		{
			URLparameters=URLparameters.substring(URLparameters.indexOf('#')+1,URLparameters.length);
		}
	}
	else
	{
		// Netscape or version 4 browsers

		URLparameters=document.location.search;
		URLparameters="&"+URLparameters.substring(1,URLparameters.length);

		// VV: handle passing parameters using the '#' tag after the URL.
		URLparametersHash=document.location.hash;
		URLparameters+=(URLparameters!="&"?"&":"")+URLparametersHash.substring(1,URLparametersHash.length);
	}
	
	while (URLparameters.indexOf('%20')>0){
		pos2=URLparameters.indexOf('%20',0);
		tmp=URLparameters.substring(0,pos2)+' '+URLparameters.substring(pos2+3,URLparameters.length);
		URLparameters=tmp;
	}
	
	pos = -1;		
	tmp = "";
	text=URLparameters;
	if (text!='') {
		text=text+'&';
		URLparameters=URLparameters+'&';
		Myparams=0;
		while (text.length>0) {
			pos=text.indexOf('&',0);
			text=text.substring(pos+1);
			Myparams++;
		}
	}
 }


//-->

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Netherlands Netherlands
Victor is consulting in The Netherlands.

His interests include Windows and web application development using .NET technologies and even some Apache/PHP/MySQL...

Comments and Discussions