Thilo: parameterübergabe an funktionen

Beitrag lesen

Hallo!

lösungsansatz: externe .js datei welche folgenden c

»   function makeBold(id) {
»»  document.all.id.style.fontWeight = "bold"; }

function undoBold(id){

»»  document.all.id.style.fontWeight = "normal"; }

muß heißen:  
  
  function makeBold(id) {
document.all[id].style.fontWeight = "bold"; }
  function undoBold(id){
document.all[id].style.fontWeight = "normal"; }

Thilo