Hye guys im not 100% experienced with js, so i want to know if a code like this would work:
var fnctnames = new Array();
fnctnames[0] = "brd";
fnctnames[1] = "sp";
Var linknames = new Array();
linknames[0] = "Bread";
linknames[1] = "Soup";
var nots = new Array();
nots[0] = "bred";
nots[1] = "soup";
for (var i = 0; i<10; i++){
var fnctnames* = true;
document.write(" <div id="+linknames*+"></div>");
function nots*(){
if(!fnctnames*){
linknames*.innerHTML = "<a href=\"javascript:"+nots*+"();\"><b>"+linknames*+"</b></a><br />Item 1<br />Item 2<br />
nots* = true;
}else{
linknames*.innerHTML = "<a href=\"javascript:"+nots*+"();\"><b>"+linknames*+"</b></a>";
nots* = false
}
}
nots*();
}
Please note, this is supposed to create menus, 2 of them with the same value. theyre the same value for now only.