|
|
Joined: Feb 2004
Posts: 3
Junior Member
|
Junior Member
Joined: Feb 2004
Posts: 3 |
I am trying to use two tabbed menus on my website. With the coding I have, their is interferance between the two I believe in part of the code, causing one of them not to work. Here is part of the JavaScript Code: <!-- function show_table( table_id ) { if ( document.getElementById ) { var tbl_qb = document.getElementById( 'qb' ); var tbl_rb = document.getElementById( 'rb' ); var tbl_wr = document.getElementById( 'wr' );
if ( table_id == 'qb' ) { tbl_qb.style.display = 'block'; tbl_rb.style.display = 'none'; tbl_wr.style.display = 'none'; } if ( table_id == 'rb' ) { tbl_qb.style.display = 'none'; tbl_rb.style.display = 'block'; tbl_wr.style.display = 'none'; } if ( table_id == 'wr' ) { tbl_qb.style.display = 'none'; tbl_rb.style.display = 'none'; tbl_wr.style.display = 'block';
} } }
show_table( 'qb' ); remove_duplicate_games( 'qb', "" ); remove_duplicate_games( 'rb', "" ); remove_duplicate_games( 'wr', "" ); --> I believe the problem has to do with the term "block" that I have in the coding. Does anyone know a word I can use to replace it on one of the codes? Or are there any other solutions?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
try, instead of 'block' , use ''
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|