In this article I show you how the technology of Active Client Pages can be used to speed up the operation of a 3D HTML table image gallery. This technique is especially useful when visitors reach your site through a slow Internet connection. This is the first part of a two-part series.
Building an ACP 3D HTML Table Image Gallery - JavaScript Code for an Ordinary 3D Image Gallery (Page 4 of 4 )
This is the skeleton code for the JavaScript used to see the pictures of the different planes, and to maximize a picture:
var present = 0; //for changing vertical planes
function scrollInward()
{
//show the next plane of pictures – moving inward
}
var maximized = false; //true when an image is maximized
//function to maximize the image.
function maximizeFn(ID)
{
//function to maximize a particular image
}
//function to restore the image.
function restoreFn(ID)
{
//function to restore the maximized image
}
//function to call either the maximizeFn() or restoreFn()
function maxRest(ID)
{
//if the variable, maximized is true, call restoreFn(ID) else call maximizeFn()
}
Read the above skeleton code. I will not explain it any further in this two-part series. You will have the complete code at the end of this series.
Let us take a break here, and continue in the next part of the series.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.