Menu
Hi there – can anyone help before I flip! I have four small images in a table on one side of a two frame page. When I click on the images they appear in the second frame which is fine BUT I want the new large picture to automatically resize to fit the frame. The original pics are 1728 x 2304 pixels but I want them to automatically reduce to 400 x 600 pixels. I can’t work out what javascript will enable this or where to put the javascript on the page – can anyone help – I am desperate, been trying to work this out for 3 days!!!!
[code=html]
<a target="main" href="Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="Absolutely%20Fabulous/CIMG2626.JPG" width="75" height="100"></a>
[/code]
[code=html]
<a target="main" href="imageViewer?src=Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="Absolutely%20Fabulous/CIMG2626.JPG" width="75" height="100"></a>
[/code]
<i>
</i>window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
document.images["myImageName"].src = unescape(src);
}
return true;
}
<i>
</i><a target="main" href="[COLOR=Red]Target.html[/COLOR]?src=Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="Absolutely%20Fabulous/CIMG2626.JPG" width="75" height="100"></a>
<i>
</i>window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img = document.images["[COLOR=Red]myImageName[/COLOR]"];
img.src = unescape(src);
img.style.width = 600 + "px";
img.style.height = 400 + "px";
}
return true;
}
<i>
</i><img name="[COLOR=Red]myImageName[/COLOR]" ...etc...>
0.1.9 — BETA 5.18