Expand|Select|Wrap|Line Numbers
- function navChange(id,auto){
- check = fetchById(id + "More").style.display;
- if(check == "block"){
- showLess(id,auto);
- }
- else{
- showMore(id,auto);
- }
- }
- function showMore(id,auto){
- fetchById(id + 'Img').src = 'graphics/minus.gif';
- fetchById(id + 'More').style.display = 'block';
- if(auto == "true"){
- fetchById(id).onclick = showLess(id,auto);
- }
- }
- function showLess(id,auto){
- fetchById(id + 'Img').src = 'graphics/plus.gif';
- fetchById(id + 'More').style.display = 'none';
- if(auto == "true"){
- fetchById(id).onclick = showMore(id,auto);
- }
- }
My problem is that when the function is called by PHP, i get a "too much repetition" error.
Please help quickly, as this is a time sensitive question. I will be working on the while waiting for answers, and will post any further bulletins when they happen.
Thanks in advance,
Nate Kay