PDA

View Full Version : Forum header script works only in IExplorer



dieselpower
05-04-2010, 01:54 PM
Hello, I am being in a way insolent by seeking help for a script that doesn't come from your site, guys. For this I want to apologize. I'm quite desperate :).

I am not even sure what type of script this is. I am helping build a proboards forum and using an old skin with "Global headers and footers" script. It is posted below.

Link to the forum site, for you to preview: http://liquidfleet.proboards.com
Header code:

<!*---LAYOUT BY IMUSION - Liquify---*>
<script> // by fla5hba5h // http://www.fla5hba5h.tk // Modified by Imusion for Liquify // http://imusion.net
var nonewpms=document.body.createTextRange().findText("0 are new")||document.body.createTextRange().findText("Welcome Guest")
var tables=document.getElementsByTagName("table")
var tds=document.getElementsByTagName("td")
tds[0].innerHTML=""
tds[3].className=""
tds[3].style.backgroundColor="transparent"
tables[0].cellSpacing="0";
tables[0].style.backgroundColor="transparent"
tables[2].cellPadding="0";
tds[3].innerHTML="<table cellpadding=0 cellspacing=0><tr><td><center><img border=0 src='http://i899.photobucket.com/albums/ac191/l0rdhelmet/liquid10copy.png' usemap=#pms></center></td></tr><tr><td class=menubg align=center valign=bottom width=700 height=20>"+tds[1].innerHTML+"</td></tr></table>"
var imgs = document.getElementsByTagName("img");
for(x=0;x<imgs.length;x++){
imgs[x].onmouseover = function(){this.src=this.src.replace('/Buttons/','/Buttons/Rolls/');};
imgs[x].onmouseout = function(){this.src=this.src.replace('Buttons/Rolls/','/Buttons/');};
}
if (!nonewpms&&!location.href.match('action=pm')){
checkpm=confirm('You have new messages. Click OK to view them.')
if (checkpm) {location.href="/index.cgi?action=pm"}
}
document.write('<map name=pms><AREA SHAPE="poly" COORDS="41,112,97,112,97,123,40,123,40,112,41,112" href=/index.cgi?action=pm title="Check PMs" ></map>')
</script>


<style>
.menubg {
position:relative;background:transparent url(http://imusion.net/forumskins/pb/3/menuback.png) no-repeat left center;padding-top: 0px; vertical-align: top
}
.titlebg {
BACKGROUND-IMAGE: url(http://imusion.net/forumskins/pb/3/titleback.png); BACKGROUND-REPEAT: repeat
}
.catbg {
BACKGROUND-IMAGE: url(http://imusion.net/forumskins/pb/3/catback.png); BACKGROUND-REPEAT: repeat; text-align: center;
}
A:hover {
COLOR: #008AE2; TEXT-DECORATION: none
}
BODY {
scrollbar-arrow-color: #FFFFFF;
scrollbar-face-color: #505050;
scrollbar-track-color: #000000;
scrollbar-highlight-color: #505050;
scrollbar-shadow-color: #505050;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #000000;

}
</style>

<style>
input
{
background-color: #070707;
border: 1px solid #161616;
color: #FFFFFF;
font-family: verdana;
font-size: 10px;
}
</style>
<!*---LAYOUT BY IMUSION - Liquify---*>

Footer Code:

<!*---LAYOUT BY IMUSION - Liquify---*>
<script language=JavaScript>
<!-- /*
Copyright 2003 ProBoards.com
All Rights Reserved

Permission is hereby granted to use this code
solely on message boards hosted by ProBoards.com.
Any other site found to be using this code shall
be in violation of this copyright notice.
*/ // Color for when the user puts their mouse over the board
var mouseOverColor = '000000'; // Default window status bar mesage
var statusMessage = 'Welcome to YOUR FORUM NAME';

window.status = statusMessage;

tables = document.getElementsByTagName('TABLE');
for(t=0;t<tables.length;t++)
for(r=0;r<tables[t].rows.length; r++)
for (c=0;c<tables[t].rows(r).cells.length; c++)
if((tables[t].rows(r).cells(c).className=="windowbg2" && tables[t].rows(r).cells(c).width=="66%") || (tables[t].rows(r).cells(c).className=="windowbg" && tables[t].rows(r).cells(c).width=="48%")) {
tables[t].rows(r).cells(c).onmouseover = function(){this.style.cursor='hand';this.style.backgroundColor=mouseOverColor;window.status = (this.id.split('|'))[1];};
tables[t].rows(r).cells(c).onmouseout = function(){this.style.backgroundColor=this.bgColor;window.status=statusMessage};
if(tables[t].rows(r).cells(c).innerHTML.match(/href="(.+?)"><B>(.+?)</)) {
if(RegExp.$1 != 0) {
tables[t].rows(r).cells(c).id=RegExp.$1+'|'+RegExp.$2;
tables[t].rows(r).cells(c).onclick = function(){location.href=(this.id.split('|'))[0];};
}
}
} // -->
</SCRIPT>

<script> // change board width
borderWidth = document.getElementsByTagName('table');
for (bw=0;bw<borderWidth.length;bw++) {
if (borderWidth[bw].width=='92%') {
borderWidth[bw].width='1080';
}} // -->
</script>

<script> // Created By Syphonic killer - Game Zone | Evolution // http://universalpalace.net/Sy/forum
x_vile_x = document.getElementsByTagName('TD');
for(u = 0; u < x_vile_x.length; u++) {
if(x_vile_x[u].className=="windowbg2" && x_vile_x[u].width=="66%") {
mod_x=x_vile_x[u].innerHTML;
mod_x = mod_x.split("<BR>")
furl = mod_x[0]
fdis = mod_x[1]
x_vile_x[u].innerHTML= furl + "<b"+"r>" + fdis;
}}
</SCRIPT>

<div align="center"><a href="http://imusion.net" target="_blank"><img src="http://imusion.net/forumskins/pb/3/footer.png" border="0"></a></div>
<!*---LAYOUT BY IMUSION - Liquify---*>


3) Describe problem:

The main banner at the top doesn't load in Firefox and Chrome, only works (seemingly) without mistakes in Internet ExploDer. On certain pages of the forum frames of unloaded images appear in Firefox or Chrome.

I need help to make this a script that functions under current standards and doesn't bug up in browsers other than IE.

Thank you in advance for your help! Sorry for posting the link to a DD script, although it's not a DD script I'm having problems with.

Regards,

dieselpower