Hi,
There is a small picture on the form, lazertg.cfm. When user clickes on it
I want to enlarge the picture. Below is the code to do it. However, when I
click on the picture an empty page, lazerzoom.cfm is opened, with no
picture on it. I am new in CF - JavaScript can anybody look into the
problem?
Lazertg.cfm:
<td width="29%" height="115">
<div align="center"><a href="javascript: openImgZoom
('imgZoom.htm?imgName=Images/photo02.png')"><img src="Images/Photo02.png"
width="150" height="113" name="photo2" border="0" alt="Click Here to
Enlarge the Image"></a></div>
</td>
Lazerzoom.cfm:
<html>
<head>
<title>Statistics LAZERTAG Event</title>
</head>
<script language="JavaScript">
function parameterArray(inputString)
{
//strip off the question mark;
//subString's 2nd parameter defaults to end of string
inputString = inputString.substring(1);
aLocalArray = inputString.split('&');
this.length = aLocalArray.length;
for (var i=0; i<aLocalArray.length; i++)
{
//If the browser follows the encoding of
JavaScript's 'escape'
//and 'unescape' function, replace these two while
loops with
//aLocalArray[i] = unexcape(aLocalArray[i]);
while (aLocalArray[i].indexOf("+") != -1)
{
var theLocation = aLocalArray[i].indexOf("
+");
aLocalArray[i] =
aLocalArray[i].substring(0, theLocation) + " " +
aLocalArray[i].substring(theLocation+1);
}
while (aLocalArray[i].indexOf("%") != -1)
{
var theLocation = aLocalArray[i].indexOf
("%");
aLocalArray[i] =
aLocalArray[i].substring(0, theLocation) +
unescape(aLocalArray[i].substring(theLocation, theLocation+3)) +
aLocalArray[i].substring(theLocation+3);
}
this[i] =
aLocalArray[i].substring(0,aLocalArray[i].indexOf("="));
this[this[i]] =
aLocalArray[i].substring(aLocalArray[i].indexOf("=")+1);
//alert("Slot " + i + " is " + this[i] + "\nand
contains " + this[this[i]] + ".");
}
return this;
}
</script>
<body bgcolor="WHITE" link="#00FFFF" alink="#009999" vlink="#0099FF">
</BODY>
</HTML>
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org