Caution
25 Mar 2011, 11:07 AM
Hello,
I'm attempting to create a system that will allow, when you hover over something, to change information in one area, and then use the fade functions of JQuery at the same time. The function affected is here:
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).fadeOut(1,0.3);
genericCounter++;}
else {
break; } }
$("JavaScriptWhatsNewPicture"+linkNumber).fadeIn(50,1.0); }
else {
document.getElementById("WhatsNewCaption").innerHTML=""; } }
The issue is when this function is called, it simply does nothing. This type of integration has worked once before and I didn't change the syntax, but I question if it really should have ever worked before then... anyways, help?
I'm attempting to create a system that will allow, when you hover over something, to change information in one area, and then use the fade functions of JQuery at the same time. The function affected is here:
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).fadeOut(1,0.3);
genericCounter++;}
else {
break; } }
$("JavaScriptWhatsNewPicture"+linkNumber).fadeIn(50,1.0); }
else {
document.getElementById("WhatsNewCaption").innerHTML=""; } }
The issue is when this function is called, it simply does nothing. This type of integration has worked once before and I didn't change the syntax, but I question if it really should have ever worked before then... anyways, help?