SoCal
« Opacity overlap fixer »

Welcome Guest. Please Login or Register.
Dec 9, 2009, 3:13am




SoCal :: SoCal Codes :: CF/SL Codes :: Opacity overlap fixer
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Opacity overlap fixer (Read 4,673 times)
california
[image]
I'm not here...
member is offline

[avatar]



Joined: Nov 2004
Gender: Male
Posts: 6,425
 Opacity overlap fixer
« Thread Started on Dec 3, 2004, 1:01am »

[obsolete]

If you've noticed, ethix's opacity (which is what this board uses) didn't seem to work when posting or viewing a post. This is because ProBoards coding reassigns the classes three times for no reason on those pages. This is what I'm talking about:

Viewing a post: without this fix , with this fix
Posting: without this fix , with this fix


The cause? ProBoards coding errors. There are three of them. They just don't get without the opacity code.

Error #1:

<td bgcolor="272A2F" class="windowbg">
<table width='100%' cellpadding='4' cellspacing='0' class="windowbg" bgcolor="272A2F">
<tr>
<td class="windowbg" bgcolor="272A2F" valign="top" width="20%" rowspan="2"><font size="1">

The class is assigned three times. This causes there to be a triple overlap, so unless the opacity of your PNG images is set very low, the opacity will be over 100% and therefore unnoticable.

Error #2:

<td bgcolor="000000">
<table cellspacing="1" class="titlebg" bgcolor="FFB903" width="100%">
<form action="index.cgi?board=PASS&action=post2&thread=1102054210" method="post" name="postmodify" onSubmit="submitonce(this);">
<tr>
<td class="titlebg"><font size=2 class="titletext" color="000000"><b>Post Message</b></font></td>

A table cell with a bg-color but no class declaration? WHY Pat? WHY!? Also the same problem with the multiple declarations of the titlebg class.

Error #3:

<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="000000" class="000000">
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td align="left" class="titlebg" bgcolor="FFB903" width="100%">

Obviously a huge ProBoards coding error. The class is black? wth? This is the bottom title bar when viewing a post.


I have written a code to correct all these errors. It basically removes the classes of any table cell that is within another table cell of the same class. It also sets the classes of ALL tables to "bordercolor" unless they don't have a class assigned (or are quotes/codes).

Important: If you have "Remove Last Edit Checkbox v1.3" , this code should below it, or there the checkbox won't appear (no I'm not sure why).. I'd recommend placing it as low as possible in your footers.

BOARD FOOTERS ONLY
Code:
<script language="javascript" type="text/javascript">
<!--
/* opacity overlap fixer by california
use and post freely as long as
this header stays intact */

var TD=document.getElementsByTagName("td");
var table=document.getElementsByTagName("table");
var innerCell;
for(i=0;i<TD.length;i++){
TD[i].bgColor='transparent';
innerCell=TD[i].getElementsByTagName("td");
for(j=0;j<innerCell.length;j++)
if(TD[i].className==innerCell[j].className)
innerCell[j].className='';
}
for(k=0;k<table.length;k++){
table[k].bgColor='transparent';
if((table[k].className.match(/(windowbg|000000)/i)) || ((table[k].align != "center") && (table[k].className=="titlebg")))
table[k].className='bordercolor';
}
// -->
</script>
« Last Edit: May 1, 2005, 4:59pm by california »Link to Post - Back to Top  IP: Logged

[image]
saigan
[image]
member is offline





Joined: Dec 2005
Posts: 4
 Re: Opacity overlap fixer
« Reply #1 on Mar 13, 2006, 7:59pm »

This won't work....I'm use the opacity code, and it looks normal, but links and such are being covered by the opacity stuff. So you can't click them, and I use the code and it does nothing...


please help

http://guildwtf.proboards52.com/index.cgi



*EDIT* oh, i see the obsolete, so is there a solution?
« Last Edit: Mar 13, 2006, 8:01pm by saigan »Link to Post - Back to Top  IP: Logged
california
[image]
I'm not here...
member is offline

[avatar]



Joined: Nov 2004
Gender: Male
Posts: 6,425
 Re: Opacity overlap fixer
« Reply #2 on Mar 13, 2006, 11:33pm »

It's obsolete because the three ProBoard markup errors noted in the original post were corrected nearly a year ago. There's no solution because there's no problem anymore. And take a look at what board you're in...
Link to Post - Back to Top  IP: Logged

[image]
   [Search This Thread][Send Topic To Friend] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!