celticking
Technical User
I hope someone can please help with a problem i have. Here's my code....
<head>
<SCRIPT LANGUAGE="JavaScript">
function doPic(imgName) {
if (document.images) {
document.mainpic.src = imgName;
}
}
[inline: database='itc',layout='list',operator='eq','username'=(form_param:'user'),search][records]
[inline: database='itc',layout='list' ,recordid=(recordid_value),detailed=(math_add
field:'detailed'),1),update][/inline]
var img_one = new Image();
img_one.src = "pics/[field:'pic1']";
var img_two = new Image();
img_two.src = "pics/[field:'pic2']";
var img_three = new Image();
img_three.src = "pics/[field:'pic3']";
var img_four = new Image();
img_four.src = "pics/[field:'pic4']";
function openLarge(imgName)
{
newWindow = window.open("","", "menu=false,height=500,width=600,left=50,top=20"
;
newWindow.document.write("<center><img src='" + imgName + "' height='500'><br> <br><input type='button' value='Close' onclick='window.close()'></center>"
;
}
</script>
</head>
<body>
<table width=120 height=148 border="1" cellpadding="0" cellspacing="0" bordercolor="#A82820">
<tr>
<td height="161" valign="top" colspan=4 align=center> <a href="javascript
penLarge(document.mainpic.src);"><img name="mainpic" src="pics/[field:'pic1']" width=132 height=161 border=0 lowsrc="itc_current/Mainpic"></a>
</td>
<td width="4"></td>
</tr>
<tr>
<td width="32" height="42" valign="top"> <a href="javascript:doPic('pics/[field:'pic1']');">
<img src="pics/[field:'pic1']" width=30 height=40 border=1 lowsrc="itc_current/thumb1"></a></td>
<td width="32" valign="top"> <a href="javascript:doPic('pics/[field:'pic2']');"><img src="pics/[field:'pic2']" width=30 height=40 border=1 lowsrc="itc_current/thumb2"></a></td>
<td width="32" valign="top"> <a href="javascript:doPic('pics/[field:'pic3']');"><img src="pics/[field:'pic3']" width=30 height=40 border=1 lowsrc="itc_current/thumb3"></a></td>
<td width="32"valign="top"> <a href="javascript:doPic('pics/[field:'pic4']');"><img src="pics/[field:'pic4']" width=30 height=40 border=1 lowsrc="itc_current/thumb4"></a></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
You can see the script running if you go to In IE 5.5 it runs correct, though they're may be a script error with an earlier version? The big problem is viewing with Netscape, none of the pics show. Even the enlarge button won't show. If i click on the main broken image, the popup appears with the full size picture correctly. I'm really stuck with this.
Thanks.
<head>
<SCRIPT LANGUAGE="JavaScript">
function doPic(imgName) {
if (document.images) {
document.mainpic.src = imgName;
}
}
[inline: database='itc',layout='list',operator='eq','username'=(form_param:'user'),search][records]
[inline: database='itc',layout='list' ,recordid=(recordid_value),detailed=(math_add
var img_one = new Image();
img_one.src = "pics/[field:'pic1']";
var img_two = new Image();
img_two.src = "pics/[field:'pic2']";
var img_three = new Image();
img_three.src = "pics/[field:'pic3']";
var img_four = new Image();
img_four.src = "pics/[field:'pic4']";
function openLarge(imgName)
{
newWindow = window.open("","", "menu=false,height=500,width=600,left=50,top=20"
newWindow.document.write("<center><img src='" + imgName + "' height='500'><br> <br><input type='button' value='Close' onclick='window.close()'></center>"
}
</script>
</head>
<body>
<table width=120 height=148 border="1" cellpadding="0" cellspacing="0" bordercolor="#A82820">
<tr>
<td height="161" valign="top" colspan=4 align=center> <a href="javascript
</td>
<td width="4"></td>
</tr>
<tr>
<td width="32" height="42" valign="top"> <a href="javascript:doPic('pics/[field:'pic1']');">
<img src="pics/[field:'pic1']" width=30 height=40 border=1 lowsrc="itc_current/thumb1"></a></td>
<td width="32" valign="top"> <a href="javascript:doPic('pics/[field:'pic2']');"><img src="pics/[field:'pic2']" width=30 height=40 border=1 lowsrc="itc_current/thumb2"></a></td>
<td width="32" valign="top"> <a href="javascript:doPic('pics/[field:'pic3']');"><img src="pics/[field:'pic3']" width=30 height=40 border=1 lowsrc="itc_current/thumb3"></a></td>
<td width="32"valign="top"> <a href="javascript:doPic('pics/[field:'pic4']');"><img src="pics/[field:'pic4']" width=30 height=40 border=1 lowsrc="itc_current/thumb4"></a></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
You can see the script running if you go to In IE 5.5 it runs correct, though they're may be a script error with an earlier version? The big problem is viewing with Netscape, none of the pics show. Even the enlarge button won't show. If i click on the main broken image, the popup appears with the full size picture correctly. I'm really stuck with this.
Thanks.