|
|
|
set color use parameter
|
|||
|---|---|---|---|
|
#18+
function drawShipsWithNotAvailableIds(shipsWithNotAvailableIdsAR,seaAreaIdPrefics,drawOperation){ try{ var shipColor; var notAvlbColor; switch(drawOperation){ case 'draw': shipColor = 'Red'; notAvlbColor ='Gray'; break; case 'clear': shipColor ='blue'; notAvlbColor = 'Blue'; break; } .... elmtShipId.style.backgroundColor=shipColor; elmtNotAvlbId.style.backgroundColor=notAvlbColor; } I want to pass two parameters : shipColor, norAvlbColor function drawShipsWithNotAvailableIds(shipsWithNotAvailableIdsAR,seaAreaIdPrefics,drawOperation, shipColor, norAvlbColor ) How can does it do ? thanks ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.11.2008, 11:38 |
|
||
|
|

start [/forum/topic.php?fid=22&fpage=313&tid=1455612]: |
0ms |
get settings: |
5ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
43ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 202ms |
| total: | 301ms |

| 0 / 0 |
