John,

Your javascript is always trying to show/hide a div with the ID of
'hideShow'.  However, in your loop, you are making the ID dynamic and are
passing it to the showdiv() and hidediv() function.  Unfortunately, your
javascript functions are not written to use a parameter.  Try this:

I'm not sure about the netscape 4 / ie 4 syntax below.  You can try it, but
I am certain about the syntax for IE5, NS6.

function showdiv(sDivID) {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(sDivID).style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document[sDivID].visibility = 'visible';
}
else { // IE 4
document.all[sDivID].style.visibility = 'visible';
}
}
}

function hidediv(sDivID) {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(sDivID).style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document[sDivID].visibility = 'hidden';
}
else { // IE 4
document.all[sDivID].style.visibility = 'hidden';
}
}
}





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4494
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to