Jump to content

Can u explain this script in real life to me? THanks..


Monkuar

Recommended Posts

function getObj(o){return gi(o);}
function uS() {
var v, i;
if(lV[cId][3]) lV[cId][2] = (a.secH.checked?1:0);
if(lV[cId][4]) lV[cId][0] = a.secL.selectedIndex;
if(lV[cId][5]) {
	v = parseInt(a.secO.value);
	if(v!=NaN && v) lV[cId][1] = v;
}
v="";
for(i in lV) v+=(v?";":"")+i+":"+lV[i][0]+","+lV[i][1]+","+lV[i][2];
a.v.value = v;

gi("aS").style.display="block";
cS();
}

function cS() {
if(eSo) eSo.parentNode.removeChild(eSo);
eSo = 0;
}

var eSo = 0, cId=0;
function eS(obj, id) {
var i,c = obj.parentNode;
var fs = c.parentNode;
cS();
cId = id;
eSo = document.createElement("div");
eSo.className="p3";
var h = "";
if(lV[id][3]) h += "<input name=\"secH\" type=checkbox"+(lV[id][2]?" checked":"")+"> Hide This Section<br>";
if(lV[id][4]) {
	h += "Display Location: <select name=\"secL\">";
	for(i=0;i<3;i++) h += "<option"+(lV[id][0]==i?" selected":"")+">"+locs[i]+"</option>";
	h += "</select><br>";
}
if(lV[id][5]) {
	h += "Display Order: <input name=\"secO\" type=text value=\""+lV[id][1]+"\" size=2><br>";
}
if(h) {
	h += "<div class=\"ab\"><a href=\"javascript:uS()\">Update Settings</a></div>";
	eSo.innerHTML = h;
}

if(c.nextSibling) {
	fs.insertBefore(eSo, c.nextSibling);
} else {
	fs.appendChild(eSo);
}
}

 

Now whenever I save my V Value POST.. it only shows 3 freaking 1:0,0,0 arrays it needs to show 6 each one ? PLZ HELP

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.