I'm outputting dynamic images. I'm assigning each one its own ID. 

I added an onclick to call a function that should switch the image out with 
another when called.

 onclick="switchImage('#questionid#');"

In the function, I can't figure out howta use that argument variable to switch 
out the image. What am I doin wrong here?

<script type="text/javascript">
function switchImage(num) {
document.getElementById('commentImage' & num).src='../images/commentred.png';
}
</script>

Thanks,
Will


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283710
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to