Post by Trip on Nov 22, 2014 14:04:40 GMT -5
NOTE BEFORE ORIGINAL POST RELEASE: I made this code for a competition, me versus my mentor and inspiration---SK/Zero Tolerance!
Well, it looks like it's my turn....
Once SK, now Zero Tolerance, is my mentor of the programming language in which we are battling with. Not only a mentor, he's an excellent judge of character as well as a very understanding person. We've known each other for a long time and we've both learned lots. ^_^
I am a student going against a MASTER.
Now for the Grand Finale...
I present to you all:
Super Navigation Modulation
Code Specifications:
Code Speed: Moderate-Fast
Compatibility: Internet Explorer ONLY
Browser Speed Limit: No Limit
TOS Check: ...*coughCodeBattlecough*
UserType: Friendly
Goes in MAIN FOOTER:
EDIT:
For some odd reason, the code sorta 'changed' and malfunctioned when I posted it here, so I decided to host it so that it may work as intended. So, instead of copying and pasting ALLLL of that code in your Main Footer, just paste the hosted version of the code in the Main Footer, below:
TESTED and APPROVED by me.
MAIN FOOTER PORTION:
Goes in OTHER BOARD FOOTERS:
I tested and tested countless times to ensure that errors would not occur...I only hope that it works out well for everyone else.
It has been a while since I've actually coded in JavaScript and even though my chances of winning are slim, I will say that I'm proud of what I created for this battle.
Excellent job, Zero Tolerance, your code works great and it is indeed PROFESSIONAL!
Well, that's my entry.
2nd HALF
Hehehe, thanks!! I gave it my best shot for the specifications given. ^_^
EDIT: Oh BTW, I took some screenshots of my Super Navigation Modulation code in action below. ^_~
On Profile Page:

^: Fully interchangeable interface allows for easy modification of navigation modulation.
On Main Page:

^: Behold the results.
Well, it looks like it's my turn....
Once SK, now Zero Tolerance, is my mentor of the programming language in which we are battling with. Not only a mentor, he's an excellent judge of character as well as a very understanding person. We've known each other for a long time and we've both learned lots. ^_^
I am a student going against a MASTER.
Now for the Grand Finale...
I present to you all:
Super Navigation Modulation
Code Specifications:
Code Speed: Moderate-Fast
Compatibility: Internet Explorer ONLY
Browser Speed Limit: No Limit
TOS Check: ...*coughCodeBattlecough*
UserType: Friendly
Goes in MAIN FOOTER:
<script language="JavaScript">
<!--
//Special Navigation Modulation
//Main Footer Portion
//Created by Trip of Game Zone | Evolution
//Do not post this code anywhere else without my permission
//Old-Fashioned Member Detection
var culprit = document.getElementsByTagName('td')[5].innerHTML;
var findIT = culprit.indexOf("username");
var hereIS = findIT + 9;
var gotcha = culprit.substring(hereIS,culprit.length);
var Ender = gotcha.indexOf('">');
var there = gotcha.substring(0,Ender);
//Guests v1
var gKing = document.getElementsByTagName('font');
for(x=0;x<gKing.length;x++){
if(gKing[x].size==2 && gKing[x].innerHTML.match(/Hey,(\s)/)){
document.write('<iframe name="navi" src="/index.cgi?action=profile&username='+there+'" onLoad="CallToArms();" style="display:none"></iframe>');
}}
//Profile Assurance
if(location.href.match(/(viewprofile&username|profile2)/gi)){
dyno = document.getElementsByTagName('td')[40];
mite = dyno.innerHTML.split("Ö");
dyno.innerHTML = mite[2];
}
//Image Destruction
function homeDetonation(){
kool = navi.document.getElementsByTagName('input');
for(x=0;x<kool.length;x++){
if(kool[x].value.match(/hos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[0].style.display='none';
}}}
//Navigation Modulation
function helpDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/£hlos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[1].style.display='none';
}}}
function searchDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/seos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[2].style.display='none';
}}}
function memberDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/mos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[3].style.display='none';
}}}
function calenderDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/cos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[4].style.display='none';
}}}
function admprofDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/pos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[5].style.display='none';
}}}
function profnoteDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/nos/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[6].style.display='none';
}}}
function notelogDetonation(){
fragment = navi.document.getElementsByTagName('input');
for(x=0;x<fragment.length;x++){
if(fragment[x].value.match(/los/)){
document.getElementsByTagName('td')[5].getElementsByTagName('img')[7].style.display='none';
}}}
//Activation of Arms
function CallToArms(){
homeDetonation();
helpDetonation();
searchDetonation();
memberDetonation();
calenderDetonation();
admprofDetonation();
profnoteDetonation();
notelogDetonation();
}
//Menu-Nav Components
iMenuAlpha = "<br /><table class='bordercolor' cellSpacing='1' width='720'><tr><td class='catbg' height='25'><font class='cattext' size='2'><b>Menu Navigation Experience</b></font></td></tr></center>";
//Grab Image Test o_O
var gKing = document.getElementsByTagName('font');
for(x=0;x<gKing.length;x++){
if(gKing[x].size==2 && gKing[x].innerHTML.match(/Hey,(\s)/)){
ku = document.body.getElementsByTagName('td')[5];
gu = ku.getElementsByTagName('img');
pow = new Array(9);
pow[0] = '<a href=javascript:homesw();><img src='+gu[0].outerHTML.split('"')[1]+' border="0"></a>';
pow[1] = '<a href=javascript:helpsw();><img src='+gu[1].outerHTML.split('"')[1]+' border="0"></a>';
pow[2] = '<a href=javascript:searchsw();><img src='+gu[2].outerHTML.split('"')[1]+' border="0"></a>';
pow[3] = '<a href=javascript:membersw();><img src='+gu[3].outerHTML.split('"')[1]+' border="0"></a>';
pow[4] = '<a href=javascript:calendersw();><img src='+gu[4].outerHTML.split('"')[1]+' border="0"></a>';
pow[5] = '<a href=javascript:xapsw();><img src='+gu[5].outerHTML.split('"')[1]+' border="0"></a>';
pow[6] = '<a href=javascript:xpnsw();><img src='+gu[6].outerHTML.split('"')[1]+' border="0"></a>';
pow[7] = '<a href=javascript:xnlsw();><img src='+gu[7].outerHTML.split('"')[1]+' border="0"></a>';
//Navi Sets
//Online Full Set
hSet = pow[0];
hlSet = pow[1];
seSet = pow[2];
mSet = pow[3];
cSet = pow[4];
pSet = pow[5];
nSet = pow[6];
lSet = pow[7];
}}
//Reinforced Menu Construct
SFMenu = "<br /><b>Online Navigate:</b><em name='Onnav'>\ \ </em><br /><hr width='100%'><b>Offline Navigate:</b><em name='Offnav'>\ \ </em><br /><hr width='100%'><br /><center><a href=javascript:compl();><b><i>Finished Updating Your Special Navigation Menu?</i></b></a></center>";
function compl(){
alert("Once you finish updating, please type in your password in the 'Current Password' blank below this Navigation Menu, then press 'Change profile' button, thank you!");}
//Menu Detection Sequence
if(location.href.match(/profile&username=(\D+)/gi)){
document.creator.usertext.style.display = "none";
var bolder = document.getElementsByTagName('b');
fCrest = document.body.getElementsByTagName('td');
for(x=0;x<bolder.length;x++){
for(q=0;q<fCrest.length;q++){
if(bolder[x].innerHTML.match("Personal Text")){
if(fCrest[q].className=="windowbg" && fCrest[q].height==25 && fCrest[q].innerHTML.match(/(\s)this(\s)forum/)){
bolder[x].innerHTML = "";
fCrest[q].innerHTML+=iMenuAlpha;
}}}}StaffMenu();}
//Config
n00ble = "";
if(location.href.match(/profile&username=(\D+)/gi) && document.creator.usertext.value.indexOf(n00ble)==-1){
navi.src = "/index.cgi";
alert('Please wait while we configure your Special Navigation System Options...');
document.creator.usertext.value = "Öhs£hlssesmscspsnslsÖ";
setTimeout('alert("Configuration Complete! Please type your password in the appropriate blank on the Profile page, and then press \'Change profile\' button.");',1000);
setTimeout("alert('Now, Please go to your Profile for a repeated, but FINAL Configuration Session, thanks. :)')",1100);
}
function StaffMenu(){
sVersion = document.body.getElementsByTagName('table');
for(v=0;v<sVersion.length;v+=2){
if(sVersion[v].width==720 && sVersion[v].innerHTML.match(/u(\s)N/)){
sVersion[v].insertAdjacentHTML("afterEnd",SFMenu);
}}HomeNav();HelpNav();SearchNav();MemberNav();CalenderNav();ProfileNav();NotificationNav();LogoutNav();}
//Confirmations
//Home
function homesw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
hsw();
}else{
alert('OK, Canceled');
}}
//Help
function helpsw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
hlsw();
}else{
alert('OK, Canceled');
}}
//Search
function searchsw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
sesw();
}else{
alert('OK, Canceled');
}}
//Member
function membersw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
memsw();
}else{
alert('OK, Canceled');
}}
//Calender
function calendersw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
calsw();
}else{
alert('OK, Canceled');
}}
//Admin/Profile Probability Statistic
function xapsw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
apsw();
}else{
alert('OK, Canceled');
}}
//Profile/Notification Probability Statistic
function xpnsw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
pnsw();
}else{
alert('OK, Canceled');
}}
//Notification/Logout Probability Statistic
function xnlsw(){
quantum = confirm("Traverse Icon Status?");
if(quantum==true){
nlsw();
}else{
alert('OK, Canceled');
}}
//Verifications
//Home
function hsw(){
if(document.creator.usertext.value.match(/hs/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("hs","hos");alert("Home icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/hos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("hos","hs");alert("Home icon is now ONLINE");
}}
//Help
function hlsw(){
if(document.creator.usertext.value.match(/£hls/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("£hls","£hlos");alert("Help icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/£hlos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("£hlos","£hls");alert("Help icon is now ONLINE");
}}
//Search
function sesw(){
if(document.creator.usertext.value.match(/ses/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("ses","seos");alert("Search icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/seos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("seos","ses");alert("Search icon is now ONLINE");
}}
//Member
function memsw(){
if(document.creator.usertext.value.match(/ms/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("ms","mos");alert("Member icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/mos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("mos","ms");alert("Member icon is now ONLINE");
}}
//Calender
function calsw(){
if(document.creator.usertext.value.match(/cs/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("cs","cos");alert("Calender icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/cos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("cos","cs");alert("Calender icon is now ONLINE");
}}
//A/P Stat Prob
function apsw(){
var rebel = gu[5].outerHTML.split('"')[1].split('/')[5].split('.')[0];
if(document.creator.usertext.value.match(/ps/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("ps","pos");alert(rebel+" icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/pos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("pos","ps");alert(rebel+" icon is now ONLINE");
}}
//P/N Stat Prob
function pnsw(){
var rebel = gu[6].outerHTML.split('"')[1].split('/')[5].split('.')[0];
if(document.creator.usertext.value.match(/ns/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("ns","nos");alert(rebel+" icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/nos/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("nos","ns");alert(rebel+" icon is now ONLINE");
}}
//N/L Stat Prob
function nlsw(){
var rebel = gu[7].outerHTML.split('"')[1].split('/')[5].split('.')[0];
if(document.creator.usertext.value.match(/ls/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("ls","los");alert(rebel+" icon is now OFFLINE");
}else if(document.creator.usertext.value.match(/los/gi)){
document.creator.usertext.value = document.creator.usertext.value.replace("los","ls");alert(rebel+" icon is now ONLINE");
}}
//Navigation Set
//Home
function HomeNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/hs/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += hSet;
}}OHomeNav();}
function OHomeNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(c=0;c<xFactor.length;c++){
if(dComplex.value.match(/hos/gi) && xFactor[c].name=="Offnav"){
xFactor[c].innerHTML += hSet;
}}}
//Help
function HelpNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/£hls/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += hlSet;
}}OHelpNav();}
function OHelpNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/£hlos/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += hlSet;
}}}
//Search
function SearchNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/ses/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += seSet;
}}OSearchNav();}
function OSearchNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/seos/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += seSet;
}}}
//Member
function MemberNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/ms/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += mSet;
}}OMemberNav();}
function OMemberNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/mos/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += mSet;
}}}
//Calender
function CalenderNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/cs/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += cSet;
}}OCalenderNav();}
function OCalenderNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/cos/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += cSet;
}}}
//Profile
function ProfileNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/ps/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += pSet;
}}OProfileNav();}
function OProfileNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/pos/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += pSet;
}}}
//Notification
function NotificationNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/ns/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += nSet;
}}ONotificationNav();}
function ONotificationNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/nos/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += nSet;
}}}
//Logout
function LogoutNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/ls/gi) && xFactor[b].name=="Onnav"){
xFactor[b].innerHTML += lSet;
}}OLogoutNav();}
function OLogoutNav(){
dComplex = document.creator.usertext;
xFactor = document.body.getElementsByTagName('em');
for(b=0;b<xFactor.length;b++){
if(dComplex.value.match(/los/gi) && xFactor[b].name=="Offnav"){
xFactor[b].innerHTML += lSet;
}}}
//-->
</script>
EDIT:
For some odd reason, the code sorta 'changed' and malfunctioned when I posted it here, so I decided to host it so that it may work as intended. So, instead of copying and pasting ALLLL of that code in your Main Footer, just paste the hosted version of the code in the Main Footer, below:
TESTED and APPROVED by me.

MAIN FOOTER PORTION:
<script src="http://www.webpost.net/ma/machinax/snm.js"></script>
Goes in OTHER BOARD FOOTERS:
<script>
//Special Navigation Modulation
//Board Footer Portion
//Created by Trip of Game Zone | Evolution
//Do not post this code anywhere else without my permission
var kiken = document.body.getElementsByTagName('td');
for(x=0;x<kiken.length;x++){
if(kiken[x].width=="20%" && kiken[x].innerHTML.match(/(.+?)Ö/gi)){
kiken[x].innerHTML = kiken[x].innerHTML.replace(/Ö(.+?)Ö/,"");
}}
</script>
I tested and tested countless times to ensure that errors would not occur...I only hope that it works out well for everyone else.
It has been a while since I've actually coded in JavaScript and even though my chances of winning are slim, I will say that I'm proud of what I created for this battle.
Excellent job, Zero Tolerance, your code works great and it is indeed PROFESSIONAL!

Well, that's my entry.

2nd HALF
Hehehe, thanks!! I gave it my best shot for the specifications given. ^_^
EDIT: Oh BTW, I took some screenshots of my Super Navigation Modulation code in action below. ^_~
On Profile Page:
^: Fully interchangeable interface allows for easy modification of navigation modulation.

On Main Page:
^: Behold the results.

[PREVIEW]



