I am tring to change the vote cast text from the xmlhttp.php file into an image. I've tried and I just can't figure out how to do it.
This is the code from the xmlhttp.php file where the code is located..
function changemnmvalues (id, value, error)
{
split = new RegExp ("~--~");
b = xvotesString[id].split (split);
target1 = document.getElementById ('xvotes-' + id);
target2 = document.getElementById ('xvote-' + id);
target3 = document.getElementById ('xreport-' + id);
target4 = document.getElementById ('xnews-' + id);
// if (error) {
// if (value > 0) { target2.innerHTML = " <span><?php echo $PLIGG_Visual_Vote_Cast;?></span> "; }
// else if (value < 0) { target2.innerHTML = "<span><?php echo $PLIGG_Visual_Vote_Report;?></span> "; }
// return false;
// }
if (b.length <= 3) {
if (error) {
alert(b[0]);
return false;
}
target1.innerHTML = b[0];
target1.style.backgroundColor = mnmPrevColor[id];
// new Effect.Fade(target3);
if (value > 0) { target2.innerHTML = "<span><?php echo $PLIGG_Visual_Vote_Cast;?></span> "; }
else if (value < 0 ) { target2.innerHTML = "<span><?php echo $PLIGG_Visual_Vote_Report;?></span> ";
// new Effect.Opacity(target4, {duration:0.8, from:1.0, to:0.3});
}
}
return false;
}
Please Help![]()



Reply With Quote




