Update to this situation:
Did some more research, modified the code to:
Code:
function WhatsNewCaption(linkNumber, parameter) {
if(parameter>0) {
document.getElementById("WhatsNewCaption").innerHTML=document.getElementById("JavaScriptWhatsNewPicture"+linkNumber).alt;
var genericCounter=1;
while(genericCounter) {
if(document.getElementById("JavaScriptWhatsNewPicture"+genericCounter)) {
$("#JavaScriptWhatsNewPicture"+genericCounter).fadeTo(700,0.3);
genericCounter++;}
else {
break; } }
$("JavaScriptWhatsNewPicture"+linkNumber).fadeTo(700,1.0); }
else {
document.getElementById("WhatsNewCaption").innerHTML="";
$("JavaScriptWhatsNewPicture2").fadeTo(700,1.0); } }
Now, the picture being chosen when parameter =1 (mouseover) will cause all the pictures to fade out (correct), but the one hovering will not become clear. Likewise, when parameter is 0 (mouseout), all the pictures stay faded, but the 2nd picture should always become more clear in this situation. Unsure what to do here - help?