Toon posts:

[JavaScript] Beginneling heeft na 48 uur zoeken nog fouten

Pagina: 1
Acties:
  • 35 views sinds 30-01-2008

Verwijderd

Topicstarter
Wie kan mij hier mee helpen:
ik krijg de ellende (8x) dat ie iets heeft met undefined, dit wordt ook afgedrukt op beeldscherm.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function conmenu_blank() {
    document.write ("<tr>")
        document.write ("<td class='conmenu_blank'></td>")
        document.write ("</tr>")
        }
function conmenu_rule() {
    document.write ("<tr>")
        document.write ("<td class='conmenu_rule'><p class='conmenu_rule'>[img]'images/steelpixel.gif'[/img]</td>")
        document.write ("</tr>")
        }
var clss = 'bla1';
var href = 'bla2';
var name = 'bla3';
function conmenu_link(clss, href, name) {
    document.write ("<tr>")
        document.write ("<td class='conmenu_link'><p class='conmenu_link'><a class='"+clss+"' href='"+href+"' onFocus='if(this.blur)this.blur()'>"+name+"</a></p></td>")
        document.write ("</tr>")
        return
        }
document.write (" <table summary='toplevel item layout' class='content_menu' cellpadding='0' cellspacing='1'> ");
document.write(conmenu_blank());
document.write(conmenu_link('gray' , '../informatie/automatisering/main.html' , 'oftochwel'));                                                                              
document.write(conmenu_link('gray' , '../informatie/automatisering/main.html' , 'oftochwel'));                                              
document.write(conmenu_link('gray' , '../informatie/automatisering/main.html' , 'oftochwel'));
document.write(conmenu_rule());
document.write(conmenu_link('gray' , '../informatie/automatisering/main.html' , 'oftochwel'));
document.write(conmenu_link('gray' , '../informatie/automatisering/main.html' , 'oftochwel'));
document.write(conmenu_blank());
document.write(" </table> ");


Ik heb het idee dat als hier een geoefend javascript persoon naar kijkt, hij al snel in de gaten heeft waar het fout gaat.

Alvast ontzettend bedankt, nu eerst koffie! :Z

  • whoami
  • Registratie: December 2000
  • Laatst online: 19:34
JS is voor w&g. code posten zomaar zonder verdere omschrijving is not done.

https://fgheysels.github.io/


  • whoami
  • Registratie: December 2000
  • Laatst online: 19:34

https://fgheysels.github.io/


Dit topic is gesloten.