emblewembl
Programmer
Hi all, I very rarely have to write any javascript and have just done a site for a friend which needs javascript to load a big image onto the screen when any thumbnail is clicked. Basically it all works exactly as we want in IE 6 but I am interested in how this javascript will work in other browsers and if there is anything that I can do to ensure that it works in as many as possible.
The main javascript function that I am concerned about is:
and the url of the (non public) website is
Thanks.
i love chocolate
The main javascript function that I am concerned about is:
Code:
function showImage( url, iname )
{
var portraitImage = iname;
document.getElementById( "bigImage" ).src = url;
if (portraitImage == "True"){
document.getElementById( "bigImage" ).style.width = "200px";
document.getElementById( "bigImage" ).style.height = "301px";
}
else
{
document.getElementById( "bigImage" ).style.width = "301px";
document.getElementById( "bigImage" ).style.height = "200px";
}
}
Thanks.
i love chocolate