html help

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

jpsj82

Senior member
Oct 30, 2000
958
0
0
actually don't listen to what i just said do this.
the following will get rid of that blank x box when you first visit your image page.


if (!arrImages[nImage])
{
// dunno what they want, show nothing
}
else
{
// show the image the chose
sImagePath = arrImages[nImage];
// display image
window.imgswap.innerHTML = '<img src=\'' + sImagePath + '\' border=0>';
}

below is exactly the same thing, just cleaner code.

if (arrImages[nImage])
{
// show the image the chose
sImagePath = arrImages[nImage];
// display image
window.imgswap.innerHTML = '<img src=\'' + sImagePath + '\' border=0>';
}