Post by Sasuke on Jan 10, 2006 18:51:02 GMT -8
I removed the location.href so this is version is 100% legal
Alright,I revamped it and made it more "Theatre" like and added a description feature and the ability to add 3 Video files instead of just 1.v2 will begin Production soon...For Now Enjoy
-------------------------------------------------------------------
Global Header:
<script type='text/javascript'>
<!--
/* ProBoards Theatre v1.5 - Created By Sasuke
Do Not Redistribute Without My Permission
*/
document.getElementsByTagName('TD').item(5).innerHTML+='<font size="-2"><a href="index.cgi?id=theatre">[ProBoards Theatre]</a></font>'
//-->
</script>
Main Footer:
<script type='text/javascript'>
<!--
/* ProBoards Theatre v1.5 - Created By Sasuke
Do Not Redistribute Without My Permission
*/
var theMovUrl="";
var theMovHgt="";
var theMovWdt="";
var theDesc="";
var objURL="";
var objHgt="";
var objWdt="";
var objDesc="";
var glbURL="";
var glbHgt="";
var glbWdt="";
var glbDesc="";
if(location.href.indexOf('action=admin')!=-1){
InnerDiv = document.getElementsByTagName('Div');
for(d=0;d<InnerDiv.length;d++){
if(InnerDiv.item(d).innerHTML.match(/Headers and Footers/i)){
InnerDiv.item(d).innerHTML+='<br /><a href="index.cgi?action=headersfooters2&id=-&system=theatre">ProBoards Theatre Settings</a>'
}
}
}
if(location.href.match(/system=theatre/i)){
document.title = document.title.replace('Home','ProBoards Theatre Control Panel');
Table = document.getElementsByTagName('Table');
for(t=4;t<Table.length;t++){
Table.item(t).style.display = 'none'
}
AdminTable = '<table align="center" width="56%" class="bordercolor"><tr>'
AdminTable+= '<td align="center" class="catbg"><center>ProBoards Theatre Settings:</center>'
AdminTable+= '</td></tr><td align="center" vAlign="top" class="windowbg">-- <b>Cinema Movie 1 Options</b> --<br />'
AdminTable+= '<b>URL To Cinema Movie 1:</b><br /><input type="text" name="theVid" id="pbVid" value="'+theMovUrl+'" /><br /><br />'
AdminTable+= '<b>Width Of Cinema Movie 1:</b><br /><input type="text" name="theWid" id="pbWid" value="'+theMovWdt+'" /><br /><br />'
AdminTable+= '<b>Height Of Cinema Movie 1:</b><br /><input type="text" name="theHei" id="pbHei" value="'+theMovHgt+'" /><br /><br />'
AdminTable+= '<b>Description Of Cinema Movie 1:</b><br /><input type="text" name="theDesc" id="desc" value="'+theDesc+'" /><br /><br /><br />'
AdminTable+= '-- <b>Cinema Movie 2 Options</b> --<br /><b>URL To Cinema Movie 2:</b><br /><input type="text" name="objVid" id="cinVid" value="'+objURL+'" /><br /><br />'
AdminTable+= '<b>Width Of Cinema Movie 2:</b><br /><input type="text" name="objWid" id="cinWid" value="'+objWdt+'" /><br /><br />'
AdminTable+= '<b>Height Of Cinema Movie 2:</b><br /><input type="text" name="objHei" id="cinHei" value="'+objHgt+'" /><br /><br />'
AdminTable+= '<b>Description Of Cinema Movie 2:</b><br /><input type="text" name="objDesc" id="cinDesc" value="'+objDesc+'" /><br /><br /><br />'
AdminTable+= '-- <b>Cinema Movie 3 Options</b> --<br /><b>URL To Cinema Movie 3:</b><br /><input type="text" name="glbVid" id="isVid" value="'+glbURL+'" /><br /><br />'
AdminTable+= '<b>Width Of Cinema Movie 3:</b><br /><input type="text" name="glbWid" id="isWid" value="'+glbWdt+'" /><br /><br />'
AdminTable+= '<b>Height Of Cinema Movie 3:</b><br /><input type="text" name="glbHei" id="isHei" value="'+glbHgt+'" /><br /><br />'
AdminTable+= '<b>Description Of Cinema Movie 3:</b><br /><input type="text" name="glbDesc" id="isDesc" value="'+glbDesc+'" /><br /><br /><br /></td></table><br /><br />'
AdminTable+= '<center><input type="submit" value="Modify ProBoards Theatre Settings" onClick="TheatreObj()"/></center>'
document.write(AdminTable);
function TheatreObj(){
medFil = document.getElementById('pbVid');
medWid = document.getElementById('pbWid');
medHei = document.getElementById('pbHei');
medDesc = document.getElementById('desc');
medv2Fil = document.getElementById('cinVid');
medv2Wid = document.getElementById('cinWid');
medv2Hei = document.getElementById('cinHei');
medv2Desc = document.getElementById('cinDesc');
medv3Fil = document.getElementById('isVid');
medv3Wid = document.getElementById('isWid');
medv3Hei = document.getElementById('isHei');
medv3Desc = document.getElementById('isDesc');
objInfo = document.forms.item(0).footer;
objInfo.value = objInfo.value.replace(new RegExp('theMovUrl="'+theMovUrl+'"',"i"),'theMovUrl="'+medFil.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('theMovHgt="'+theMovHgt+'"',"i"),'theMovHgt="'+medHei.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('theMovWdt="'+theMovWdt+'"',"i"),'theMovWdt="'+medWid.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('theDesc="'+theDesc+'"',"i"),'theDesc="'+medDesc.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objURL="'+objURL+'"',"i"),'objURL="'+medv2Fil.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objHgt="'+objHgt+'"',"i"),'objHgt="'+medv2Hei.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objWdt="'+objWdt+'"',"i"),'objWdt="'+medv2Wid.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objDesc="'+objDesc+'"',"i"),'objDesc="'+medv2Desc.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbURL="'+glbURL+'"',"i"),'glbURL="'+medv3Fil.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbHgt="'+glbHgt+'"',"i"),'glbHgt="'+medv3Hei.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbWdt="'+glbWdt+'"',"i"),'glbWdt="'+medv3Wid.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbDesc="'+glbDesc+'"',"i"),'glbDesc="'+medv3Desc.value+'"');
document.forms.item(0).submit(true);
}
}
if(location.href.indexOf('index.cgi?id=theatre')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre');
cinemaTab = '<table align="center" width="92%" class="bordercolor">'
cinemaTab+= '<tr><td align="center" class="catbg"><b>Choose Which Cinema Room You Would Like To Enter:</b><br />'
cinemaTab+= '<a href="index.cgi?id=movie1">Room 1</a> | <a href="index.cgi?id=movie2">Room 2</a> | <a href="index.cgi?id=movie3">Room 3</a>'
cinemaTab+= '</td></tr></table>'
document.write(cinemaTab);
}
if(location.href.indexOf('index.cgi?id=movie1')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre - Cinema Room 1');
InnerMovie = '<embed src="'+theMovUrl+'" width="'+theMovWdt+'" height="'+theMovHgt+'">'
InnerTable='<table align="center" width="92%" class="bordercolor">'
InnerTable+='<tr><td align="center" class="catbg">'
InnerTable+='Cinema Room 1:'
InnerTable+='</td></tr>'
InnerTable+='<td align="center" vAlign="top" class="windowbg">'
InnerTable+='<b>Description: '+theDesc+'</b><br />'
InnerTable+= InnerMovie
InnerTable+='</td></table>'
document.write(InnerTable);
}
if(location.href.indexOf('index.cgi?id=movie2')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre - Cinema Room 2');
objMovie = '<embed src="'+objURL+'" width="'+objWdt+'" height="'+objHgt+'">'
objTab ='<table align="center" width="92%" class="bordercolor">'
objTab+='<tr><td align="center" class="catbg">'
objTab+='Cinema Room 2:'
objTab+='</td></tr>'
objTab+='<td align="center" vAlign="top" class="windowbg">'
objTab+='<b>Description: '+objDesc+'</b><br />'
objTab+= objMovie
objTab+='</td></table>'
document.write(objTab);
}
if(location.href.indexOf('index.cgi?id=movie3')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre - Cinema Room 3');
glbMovie = '<embed src="'+glbURL+'" width="'+glbWdt+'" height="'+glbHgt+'">'
glbTab ='<table align="center" width="92%" class="bordercolor">'
glbTab+='<tr><td align="center" class="catbg">'
glbTab+='Cinema Room 3:'
glbTab+='</td></tr>'
glbTab+='<td align="center" vAlign="top" class="windowbg">'
glbTab+='<b>Description: '+glbDesc+'</b><br />'
glbTab+= glbMovie
glbTab+='</td></table>'
document.write(glbTab);
}
//-->
</script>
Alright,I revamped it and made it more "Theatre" like and added a description feature and the ability to add 3 Video files instead of just 1.v2 will begin Production soon...For Now Enjoy
-------------------------------------------------------------------
Global Header:
<script type='text/javascript'>
<!--
/* ProBoards Theatre v1.5 - Created By Sasuke
Do Not Redistribute Without My Permission
*/
document.getElementsByTagName('TD').item(5).innerHTML+='<font size="-2"><a href="index.cgi?id=theatre">[ProBoards Theatre]</a></font>'
//-->
</script>
Main Footer:
<script type='text/javascript'>
<!--
/* ProBoards Theatre v1.5 - Created By Sasuke
Do Not Redistribute Without My Permission
*/
var theMovUrl="";
var theMovHgt="";
var theMovWdt="";
var theDesc="";
var objURL="";
var objHgt="";
var objWdt="";
var objDesc="";
var glbURL="";
var glbHgt="";
var glbWdt="";
var glbDesc="";
if(location.href.indexOf('action=admin')!=-1){
InnerDiv = document.getElementsByTagName('Div');
for(d=0;d<InnerDiv.length;d++){
if(InnerDiv.item(d).innerHTML.match(/Headers and Footers/i)){
InnerDiv.item(d).innerHTML+='<br /><a href="index.cgi?action=headersfooters2&id=-&system=theatre">ProBoards Theatre Settings</a>'
}
}
}
if(location.href.match(/system=theatre/i)){
document.title = document.title.replace('Home','ProBoards Theatre Control Panel');
Table = document.getElementsByTagName('Table');
for(t=4;t<Table.length;t++){
Table.item(t).style.display = 'none'
}
AdminTable = '<table align="center" width="56%" class="bordercolor"><tr>'
AdminTable+= '<td align="center" class="catbg"><center>ProBoards Theatre Settings:</center>'
AdminTable+= '</td></tr><td align="center" vAlign="top" class="windowbg">-- <b>Cinema Movie 1 Options</b> --<br />'
AdminTable+= '<b>URL To Cinema Movie 1:</b><br /><input type="text" name="theVid" id="pbVid" value="'+theMovUrl+'" /><br /><br />'
AdminTable+= '<b>Width Of Cinema Movie 1:</b><br /><input type="text" name="theWid" id="pbWid" value="'+theMovWdt+'" /><br /><br />'
AdminTable+= '<b>Height Of Cinema Movie 1:</b><br /><input type="text" name="theHei" id="pbHei" value="'+theMovHgt+'" /><br /><br />'
AdminTable+= '<b>Description Of Cinema Movie 1:</b><br /><input type="text" name="theDesc" id="desc" value="'+theDesc+'" /><br /><br /><br />'
AdminTable+= '-- <b>Cinema Movie 2 Options</b> --<br /><b>URL To Cinema Movie 2:</b><br /><input type="text" name="objVid" id="cinVid" value="'+objURL+'" /><br /><br />'
AdminTable+= '<b>Width Of Cinema Movie 2:</b><br /><input type="text" name="objWid" id="cinWid" value="'+objWdt+'" /><br /><br />'
AdminTable+= '<b>Height Of Cinema Movie 2:</b><br /><input type="text" name="objHei" id="cinHei" value="'+objHgt+'" /><br /><br />'
AdminTable+= '<b>Description Of Cinema Movie 2:</b><br /><input type="text" name="objDesc" id="cinDesc" value="'+objDesc+'" /><br /><br /><br />'
AdminTable+= '-- <b>Cinema Movie 3 Options</b> --<br /><b>URL To Cinema Movie 3:</b><br /><input type="text" name="glbVid" id="isVid" value="'+glbURL+'" /><br /><br />'
AdminTable+= '<b>Width Of Cinema Movie 3:</b><br /><input type="text" name="glbWid" id="isWid" value="'+glbWdt+'" /><br /><br />'
AdminTable+= '<b>Height Of Cinema Movie 3:</b><br /><input type="text" name="glbHei" id="isHei" value="'+glbHgt+'" /><br /><br />'
AdminTable+= '<b>Description Of Cinema Movie 3:</b><br /><input type="text" name="glbDesc" id="isDesc" value="'+glbDesc+'" /><br /><br /><br /></td></table><br /><br />'
AdminTable+= '<center><input type="submit" value="Modify ProBoards Theatre Settings" onClick="TheatreObj()"/></center>'
document.write(AdminTable);
function TheatreObj(){
medFil = document.getElementById('pbVid');
medWid = document.getElementById('pbWid');
medHei = document.getElementById('pbHei');
medDesc = document.getElementById('desc');
medv2Fil = document.getElementById('cinVid');
medv2Wid = document.getElementById('cinWid');
medv2Hei = document.getElementById('cinHei');
medv2Desc = document.getElementById('cinDesc');
medv3Fil = document.getElementById('isVid');
medv3Wid = document.getElementById('isWid');
medv3Hei = document.getElementById('isHei');
medv3Desc = document.getElementById('isDesc');
objInfo = document.forms.item(0).footer;
objInfo.value = objInfo.value.replace(new RegExp('theMovUrl="'+theMovUrl+'"',"i"),'theMovUrl="'+medFil.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('theMovHgt="'+theMovHgt+'"',"i"),'theMovHgt="'+medHei.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('theMovWdt="'+theMovWdt+'"',"i"),'theMovWdt="'+medWid.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('theDesc="'+theDesc+'"',"i"),'theDesc="'+medDesc.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objURL="'+objURL+'"',"i"),'objURL="'+medv2Fil.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objHgt="'+objHgt+'"',"i"),'objHgt="'+medv2Hei.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objWdt="'+objWdt+'"',"i"),'objWdt="'+medv2Wid.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('objDesc="'+objDesc+'"',"i"),'objDesc="'+medv2Desc.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbURL="'+glbURL+'"',"i"),'glbURL="'+medv3Fil.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbHgt="'+glbHgt+'"',"i"),'glbHgt="'+medv3Hei.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbWdt="'+glbWdt+'"',"i"),'glbWdt="'+medv3Wid.value+'"');
objInfo.value = objInfo.value.replace(new RegExp('glbDesc="'+glbDesc+'"',"i"),'glbDesc="'+medv3Desc.value+'"');
document.forms.item(0).submit(true);
}
}
if(location.href.indexOf('index.cgi?id=theatre')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre');
cinemaTab = '<table align="center" width="92%" class="bordercolor">'
cinemaTab+= '<tr><td align="center" class="catbg"><b>Choose Which Cinema Room You Would Like To Enter:</b><br />'
cinemaTab+= '<a href="index.cgi?id=movie1">Room 1</a> | <a href="index.cgi?id=movie2">Room 2</a> | <a href="index.cgi?id=movie3">Room 3</a>'
cinemaTab+= '</td></tr></table>'
document.write(cinemaTab);
}
if(location.href.indexOf('index.cgi?id=movie1')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre - Cinema Room 1');
InnerMovie = '<embed src="'+theMovUrl+'" width="'+theMovWdt+'" height="'+theMovHgt+'">'
InnerTable='<table align="center" width="92%" class="bordercolor">'
InnerTable+='<tr><td align="center" class="catbg">'
InnerTable+='Cinema Room 1:'
InnerTable+='</td></tr>'
InnerTable+='<td align="center" vAlign="top" class="windowbg">'
InnerTable+='<b>Description: '+theDesc+'</b><br />'
InnerTable+= InnerMovie
InnerTable+='</td></table>'
document.write(InnerTable);
}
if(location.href.indexOf('index.cgi?id=movie2')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre - Cinema Room 2');
objMovie = '<embed src="'+objURL+'" width="'+objWdt+'" height="'+objHgt+'">'
objTab ='<table align="center" width="92%" class="bordercolor">'
objTab+='<tr><td align="center" class="catbg">'
objTab+='Cinema Room 2:'
objTab+='</td></tr>'
objTab+='<td align="center" vAlign="top" class="windowbg">'
objTab+='<b>Description: '+objDesc+'</b><br />'
objTab+= objMovie
objTab+='</td></table>'
document.write(objTab);
}
if(location.href.indexOf('index.cgi?id=movie3')!=-1){
Object = document.getElementsByTagName('Table')
for(x=4;x<Object.length;x++){
Object.item(x).style.display='none'
}
document.title = document.title.replace('Home','ProBoards Theatre - Cinema Room 3');
glbMovie = '<embed src="'+glbURL+'" width="'+glbWdt+'" height="'+glbHgt+'">'
glbTab ='<table align="center" width="92%" class="bordercolor">'
glbTab+='<tr><td align="center" class="catbg">'
glbTab+='Cinema Room 3:'
glbTab+='</td></tr>'
glbTab+='<td align="center" vAlign="top" class="windowbg">'
glbTab+='<b>Description: '+glbDesc+'</b><br />'
glbTab+= glbMovie
glbTab+='</td></table>'
document.write(glbTab);
}
//-->
</script>