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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.