Hi
I have a series of Javascript functions
Three hundred of them to be precise
function openSub1()
{
document.all.sub1B.style.display = 'block'
}
function openSub2()
{
document.all.sub2B.style.display = 'block'
}
Through to . . .
function openSub300()
{
document.all.sub300B.style.display = 'block'
}
I would like to have a Generalised function that gets the number as
a parameter - like
function openSubGeneral(nNumber)
{
//But how do I get the "Paramer Number" in the next line ????
document.all.sub296B.style.display = 'block'
}
Thanks in anticipation
Pete (Northolt UK)
I have a series of Javascript functions
Three hundred of them to be precise
function openSub1()
{
document.all.sub1B.style.display = 'block'
}
function openSub2()
{
document.all.sub2B.style.display = 'block'
}
Through to . . .
function openSub300()
{
document.all.sub300B.style.display = 'block'
}
I would like to have a Generalised function that gets the number as
a parameter - like
function openSubGeneral(nNumber)
{
//But how do I get the "Paramer Number" in the next line ????
document.all.sub296B.style.display = 'block'
}
Thanks in anticipation
Pete (Northolt UK)