Theremin
02-25-2007, 12:46 PM
This is the page
http://www.recordingjunkie.com/resources.php
I have this chunk of code in there.
<tr>
<td align="left">Model</td>
<td align="left">User Manual</td>
<td align="left">Datasheet</td>
<td align="left">Service Doc</td>
<td align="left">Schematic</td>
<td align="left">Doc1</td>
<td align="left">Doc2</td>
</tr>';
$bg = '#000000';
$bg =($bg =='#000000' ? '#333333' : '#333333');
echo '<tr bgcolor="' . $bg . '">
I am not entirely sure what the variable is doing. I know it switches the background color, but I don't know what the values == ? and : are affected by. So if aomeone can explain that quick and also suggest a better way of doing this function so it will pass validation. Is there a way to put this appearance function into a stylesheet and still have it change?
S! :)
Jason
http://www.recordingjunkie.com/resources.php
I have this chunk of code in there.
<tr>
<td align="left">Model</td>
<td align="left">User Manual</td>
<td align="left">Datasheet</td>
<td align="left">Service Doc</td>
<td align="left">Schematic</td>
<td align="left">Doc1</td>
<td align="left">Doc2</td>
</tr>';
$bg = '#000000';
$bg =($bg =='#000000' ? '#333333' : '#333333');
echo '<tr bgcolor="' . $bg . '">
I am not entirely sure what the variable is doing. I know it switches the background color, but I don't know what the values == ? and : are affected by. So if aomeone can explain that quick and also suggest a better way of doing this function so it will pass validation. Is there a way to put this appearance function into a stylesheet and still have it change?
S! :)
Jason