<!doctype html>
<html>
<head>
<title>Proof of Concept for is_mentioned_by.php - RJM Programming - August, 2016</title>
<script type='text/javascript'>

var ismulti=false;
var sit=-1;
var ourtwo=2;
var ourselo=null;
var sitlist='';
var sitdelim='';
var lastsit='';
var sitideastarted=false;
var callwhat=[];
var ocb='_BLANK';
var cwl=-1;
var prevcmd="";
var prevxcmd="";

function sitidea() {
if (sit >= 0) {
if (sit == 0) sitdelim='';
sit++;
}
if (sit > 4) {
if (prevxcmd != "") {
eval(prevxcmd);
prevcmd="";
prevxcmd="";
document.getElementById('myp').innerHTML+="why0" + String.fromCharCode(10);
} else if (prevcmd != "") {
eval(prevcmd);
prevcmd="";
prevxcmd="";
document.getElementById('myp').innerHTML+="why00" + String.fromCharCode(10);
}
if (sitlist.indexOf(',') != -1) {
document.getElementById('myp').innerHTML+=callwhat.length + ' ' + sitlist + String.fromCharCode(10);
//cwl=eval(-1 + callwhat.length);
dowhat();
} else {
//cwl=eval(-1 + callwhat.length);
dowhat();
}
sitlist='';
setdelim='';
sit=-1;
cwl=sit;
} else if (sit < 0) {
if (prevxcmd != "") {
eval(prevxcmd);
prevcmd="";
prevxcmd="";
document.getElementById('myp').innerHTML+="why000" + String.fromCharCode(10);
} else if (prevcmd != "") {
eval(prevcmd);
prevcmd="";
prevxcmd="";
document.getElementById('myp').innerHTML+="why0000" + String.fromCharCode(10);
}
sitlist='';
setdelim='';
cwl=sit;
}
setTimeout(sitidea, 1000);
}

function ourchanged(via, p1, p2, p3, p4, p5, p6, p7, p8, p9) {
lastsit=p1;
if (sit >= 0) {
if (lastsit != '') {
if (sitlist != '') sitdelim=',';
if (sitlist.indexOf(lastsit) == -1) sitlist+=sitdelim + lastsit;
cwl=sitlist.split(',').length;
sitdelim=',';
lastsit='';
}
}
if (sitlist.indexOf(',') == -1 && sitlist != '' && ourtwo >= 2) {
prevcmd="parentwino('" + sitlist + "','" + p2 + "','')"; //alert(0);
}
if (ourtwo == 2) {
callwhat.push(via(p1,p2));
} else if (ourtwo == 1) {
callwhat.push(via(p1));
} else if (ourtwo == 3) {
callwhat.push(via(p1,p2,p3));
} else if (ourtwo == 4) {
callwhat.push(via(p1, p2, p3, p4));
} else if (ourtwo == 5) {
callwhat.push(via(p1, p2, p3, p4, p5));
} else if (ourtwo == 6) {
callwhat.push(via(p1, p2, p3, p4, p5, p6));
} else if (ourtwo == 7) {
callwhat.push(via(p1, p2, p3, p4, p5, p6, p7));
} else if (ourtwo == 8) {
callwhat.push(via(p1, p2, p3, p4, p5, p6, p7, p8));
} else if (ourtwo == 9) {
callwhat.push(via(p1, p2, p3, p4, p5, p6, p7, p8, p9));
}
if (callwhat.length > 1) {
ismulti=true;
//document.title='54 ';
} else {
ismulti=false;
//document.title+='540 ';
}
}

function precheckclass() {
checkclass('');
}

function checkclass(proposedclass) {
var pclass=proposedclass, sels, isels, ijl, divo=null, divid='', fncnt=0, tbit='';
if (pclass == "") pclass="select_ms";

setTimeout(sitidea, 1000);

//var huhs=document.getElementsByTagName('div');
//for (ijl=0; ijl<huhs.length; ijl++) {
// if (huhs[ijl].innerHTML == '') {
// if (huhs[ijl].id != '') {
// divo=huhs[ijl];
// divid=huhs[ijl].id;
// }
// }
//}

//if (divid != '' || 1 == 1) {
sels=docgetclass(pclass, "select");

if (sels.length == 0 && document.getElementById(pclass)) {
sels.push(document.getElementById(pclass));
}

for (isels=0; isels<sels.length; isels++) {
if (typeof sels[isels].onchange === "undefined") {
if (1 == 3) alert("Sels[isels].onchange?");
} else if (sels[isels].onchange) {
if (('' + sels[isels].onchange).indexOf('(function(') == -1) {
fncnt++;
//document.getElementById(divid).innerHTML='<scr' + 'ipt type="text/javascript"> function ourchanged(x,y) { alert(96); } </scr' + 'ipt> ';
//alert(sels[isels].onchange);
var argbit='', argdelim='', rest='';
var precallis=('' + sels[isels].onchange).replace('function onchange(event)','').replace('{','').replace('}','').replace('(',',').replace(');','');
var postcallis='arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9'.split(',');
var callis=precallis.split(',');
ourtwo=0;
for (var ic=1; ic<callis.length; ic++) {
ourtwo++;
argbit+=argdelim + postcallis[ic];
if (ic > 2) rest+=argdelim + "String.fromCharCode(32)";
argdelim=',';
tbit+=argdelim + callis[ic];
}
//alert("setTimeout(" + ('' + sels[isels].onchange).replace(" onchange(event)", "()") + ", 4000);");
//if (fncnt == 1) sels[isels].addEventListener("change", fn3(changed,event), false); //eval("setTimeout(" + ('' + sels[isels].onchange).replace(' onchange(event)', '()') + ", 4000);");
//alert(' if (sit < 4) { sit=0; setTimeout(function(' + argbit + ') { ourchanged(' + callis[0] + ',' + argbit + '); }, 4000, this.value,this.innerHTML' + rest + '); } else { sit=-1; } ');
ourselo=sels[isels];
//alert(tbit);
eval("sels[" + isels + "].onchange=null");
if (window.addEventListener) {
eval("sels[" + isels + "].addEventListener('change', function() { if (sit < 4) { sit=0; setTimeout(function(" + argbit + ") { ourchanged(" + callis[0] + "," + argbit + "); }, 4000" + tbit + rest + "); } else { sit=-1; } })");
//alert("sels[" + isels + "].addEventListener('change', function() { if (sit < 0) { sit=0;} if (sit < 4) { setTimeout(function(" + argbit + ") { ourchanged(" + callis[0] + "," + argbit + "); }, 4000" + tbit + rest + "); } else { sit=-1; } })");
} else {
eval("sels[" + isels + "].attachEvent('change', function() { if (sit < 4) { sit=0; setTimeout(function(" + argbit + ") { ourchanged(" + callis[0] + "," + argbit + "); }, 4000" + tbit + rest + "); } else { sit=-1; } })");
}
//alert(sels[isels].onchange);
// //sels[isels].innerHTML=sels[isels].innerHTML.replace(/<option /g, '<option ontouchdown=" if (sit < 4) { sit=0; setTimeout(function(' + argbit + ') { ourchanged(' + callis[0] + ',' + argbit + '); }, 4000, this.value,this.innerHTML' + rest + '); } else { sit=-1; } " onmousedown=" if (sit < 4) { sit=0; setTimeout(function(' + argbit + ') { ourchanged(' + callis[0] + ',' + argbit + '); }, 4000, this.value,this.innerHTML' + rest + '); } else { sit=-1; alert(831); } " ');
//alert(sels[isels].innerHTML);
}
}
}
}


function docgetclass(inc, intag) {
if (document.getElementsByClassName) {
return document.getElementsByClassName(inc);
} else {
var ijl;
var anarris=[];
var huhs=document.getElementsByTagName(intag);
for (ijl=0; ijl<huhs.length; ijl++) {
if (huh[ijl].className.indexOf(inc) != -1) {
anarris.push(huhs[ijl]);
}
}
return anarris;
}
}

function clicked(inval) {
//alert(inval);
}

function changed(inval,intxt) {
if (callwhat.length > 1) {
document.getElementById('myp').innerHTML+=inval + ' +.. ' + intxt + ' ..: ' + cwl + ' :.. ' + sitlist + ' ... ' + ismulti + ' ... ' + callwhat.length + String.fromCharCode(10);
if (prevxcmd != "") {
document.getElementById('myp').innerHTML+=prevxcmd + String.fromCharCode(10);
eval(prevxcmd);
} else if (prevcmd != "") {
document.getElementById('myp').innerHTML+=prevcmd.replace("''","'top=50,left=50,width=600,height=600'") + String.fromCharCode(10);
eval(prevcmd.replace("''","'top=50,left=50,width=600,height=600'"));
}
prevxcmd="parentwino('" + inval + "','" + intxt.toLowerCase() + "','top=50,left=50,width=600,height=600')";
prevcmd="";
document.getElementById('myp').innerHTML+='... ' + prevxcmd + String.fromCharCode(10);
} else if (callwhat.length == 1) {
if (sitlist.indexOf(',') != -1) {
prevcmd="";
prevxcmd="";
var invala=sitlist.split(',');
for (var ip=0; ip<invala.length; ip++) {
document.getElementById('myp').innerHTML+=invala[ip] + ' +.. ' + intxt + ' ..: ' + cwl + ' :.. ' + sitlist + ' ... ' + ismulti + ' ... ' + callwhat.length + String.fromCharCode(10);
if (prevxcmd != "") {
document.getElementById('myp').innerHTML+=prevxcmd + String.fromCharCode(10);
eval(prevxcmd);
} else if (prevcmd != "") {
document.getElementById('myp').innerHTML+=prevcmd.replace("''","'top=50,left=50,width=600,height=600'") + String.fromCharCode(10);
eval(prevcmd.replace("''","'top=50,left=50,width=600,height=600'"));
}
prevxcmd="parentwino('" + invala[ip] + "','" + intxt.toLowerCase() + "','top=50,left=50,width=600,height=600')";
prevcmd="";
document.getElementById('myp').innerHTML+='... ' + prevxcmd + String.fromCharCode(10);
}
} else if (1 == 1) {
parentwino(inval,intxt.toLowerCase(),'');
} else {
document.getElementById('myp').innerHTML+=inval + ' -.. ' + intxt + ' ..: ' + cwl + ' :.. ' + sitlist + ' ... ' + ismulti + ' ... ' + callwhat.length + String.fromCharCode(10);
if (prevcmd != "") {
document.getElementById('myp').innerHTML+=prevxcmd + String.fromCharCode(10);
eval(prevcmd);
} else if (prevxcmd != "") {
document.getElementById('myp').innerHTML+=prevxcmd.replace("'top=50,left=50,width=600,height=600'", "''") + String.fromCharCode(10);
eval(prevxcmd.replace("'top=50,left=50,width=600,height=600'", "''"));
}
prevcmd="parentwino('" + inval + "','" + intxt.toLowerCase() + "','')";
prevxcmd="";
document.getElementById('myp').innerHTML+='... ' + prevcmd + String.fromCharCode(10);
}
}
}

function dowhat() {
if (cwl >= 0) {
//document.title='dowhat ' + callwhat[cwl];
callwhat[cwl];
//callwhat.pop();
if (cwl >= 1) {
cwl--;
setTimeout(dowhat,1000);
} else {
cwl=-1;
callwhat=[];
}
} else {
cwl=-1;
callwhat=[];
}
}

function parentwino(a, b, c) {
if (c == "") {
return window.open(a,b);

}
return window.open(a,b,c);
}


</script>
</head>
<body>


<div id=danalogue-clock-primer-tutorial><a style="text-decoration:none; border:2px solid yellow;" onclick=" document.getElementById(this.id.replace('t','i')).src='http://localhost:8888/is_mentioned_by.php?title=Analogue%20Clock%20Primer%20Tutorial'; setTimeout(precheckclass,3000); " title="Analogue Clock Primer Tutorial is mentioned by ..." id=tanalogue-clock-primer-tutorial>☞</a><iframe style=display:none; id=ianalogue-clock-primer-tutorial src=></iframe></div>
<div id=demoji-random-slideshow-category-tutorial><a style="text-decoration:none; border:2px solid yellow;" onclick=" document.getElementById(this.id.replace('t','i')).src='http://www.rjmprogramming.com.au/PHP/is_mentioned_by.php?title=Emoji%20Random%20Slideshow%20Category%20Tutorial'; setTimeout(precheckclass,3000); " title="Emoji Random Slideshow Category Tutorial is mentioned by ..." id=temoji-random-slideshow-category-tutorial>☞</a><iframe style=display:none; id=iemoji-random-slideshow-category-tutorial src=></iframe></div>
<br><textarea id='myp' style='width:100%;' rows=100></textarea><br>
</body>
</html>