Everything posted by Allan87
-
PHP within a table
Ah encoding. Thanks for all your help
-
PHP within a table
Weird thing is it doesn't show them characters on the actual page on the server.
-
PHP within a table
Seems to be all ok at the moment. One thing ive noticed though is that at the top of the page  characters are displayed. I've opened up the pages in notepad to check for any anomalous coding but cannot find where these characters are coming from
-
PHP within a table
Apologies. It is all in post 5 of this thread. It's simply highlighting a tab if you're on that page and highlighting tabs on mouseovers.
-
PHP within a table
Poor it is then. Are there any available alternatives in a div setup?
-
PHP within a table
Please forgive my lack of understanding of this div setup. When I change the php from echo '<td id="linkbarCellCurrent" to echo '<div id="linkbarCellCurrent" the rest of the page fails to load.
-
PHP within a table
The table is 3 columns, first has a corner image, second has a background image, third has a corner image. The php is in the second column. I wasn't sure how to get that arrangement without a table. <table id="linkbarOuter" cellpadding="3" cellspacing="0"> <tr> <td width="30%"><img src="../images/cornerleft.gif" width="18" height="29" alt="corner"></td> <td width="39%%" background="images/navbg.gif"> <?php currentLink("index.php", "Home", "Left"); ?> <?php currentLink("pricelist.php", "Price List","Middle"); ?> <?php currentLink("faq.php", "FAQ","Middle"); ?> <?php currentLink("tc.php", "T&C","Right"); ?> <td width="31%"><img src="../images/cornerright.gif" width="18" height="29" alt="corner"></td> </tr> </table>
-
PHP within a table
How would I use a background image between the two corners without using a table?
-
PHP within a table
Thanks for the pointers. I've included all relivant code here with the updates, table seems to have skewed, can be viewed at http://www.alco-owl.co.uk/index.php. #linkbar { width:100%; height: 29px; padding: 0px; } #linkbarOuter { height: 29px; padding: 0px; color: #000000; font-weight: bold; } <div id="linkbar"> <center> <table id="linkbarOuter" cellpadding="3" cellspacing="0"> <tr> <td width="30%"><img src="../images/corner.png" width="17" height="29" alt="corner"></td> <td width="39%%" background="images/background.png"> <?php currentLink("index.php", "Home", "Left"); ?> <?php currentLink("pricelist.php", "Price List","Middle"); ?> <?php currentLink("faq.php", "FAQ","Middle"); ?> <?php currentLink("tc.php", "T&C","Right"); ?> <td width="31%"><img src="../images/cornerright.png" width="17" height="29" alt="corner"></td> </tr> </table> <p></p> <p></p> </center> </div> <?php function currentLink ($filename, $pagetitle,$location) { // // This is a function to assign the correct rollover and background to the links // in the link bar. It either assigns the default background and rollover image // or a "highlighted" background if this is in the appropriate section. // // do specific actions for the homepage if ( (substr($_SERVER["REQUEST_URI"], -4, 4) == "com/") && ($filename == "/index.php")) { echo '<td id="linkbarCellCurrent" class="linkbarCell' . $location . '" onmouseover="tdmouseovercurrent(this)" onmouseout="tdmouseoutcurrent(this)">'; echo '<a href="' . $filename . '">' . $pagetitle . '</a></td>'; return; } // do standard options now if (substr($_SERVER["REQUEST_URI"], -5, 5) == substr($filename, -5, 5)) { // if the requested page is the same as the current item, highlight it echo '<td id="linkbarCellCurrent" class="linkbarCell' . $location . '" onmouseover="tdmouseovercurrent(this)" onmouseout="tdmouseoutcurrent(this)">'; echo '<a href="' . $filename . '">' . $pagetitle . '</a></td>'; } else if ( ( (substr($_SERVER["REQUEST_URI"], -7, 7) == "red.php") || (substr($_SERVER["REQUEST_URI"], -7, 7) == "ile.php") || (substr($_SERVER["REQUEST_URI"], -7, 7) == "ler.php") ) && ($filename == "/products.php")) { // if the requested page is any of the products sub pages and the item is products, highlight it echo '<td id="linkbarCellCurrent" class="linkbarCell' . $location . '" onmouseover="tdmouseovercurrent(this)" onmouseout="tdmouseoutcurrent(this)">'; echo '<a href="' . $filename . '">' . $pagetitle . '</a></td>'; } else { // otherwise, display the normal non-highlighted options echo '<td class="linkbarCell' . $location . '" onmouseover="tdmouseover(this)" onmouseout="tdmouseout(this)">' . "\n"; echo '<a href="' . $filename . '">' . $pagetitle . '</a></td>' . "\n"; } } ?>
-
IE seemingly ignoring CSS
Thanks for all your replies. I've managed to rectify the problem using; <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
-
IE seemingly ignoring CSS
- IE seemingly ignoring CSS
Thanks Pat, unfortunately still the same. If the coding is correct is this more likely to be a server problem?- PHP within a table
I've created a 3 column table as shown below. The middle column has a background image but when the php statement is included the background image vanishes. Do I have to use php to declare the background somehow? <table style="width: 100%"> <tr> <td> </td> <td style="background-image: url('images/background.png')"> <? currentLink("index.php", "Home", "Left"); ?> </td> <td> </td> </tr> </table>- IE seemingly ignoring CSS
I've now moved the </head> tag to after the javascript. Also closed the body and html at the bottom. I'm still however getting this odd jutter to the left after clearing my cache.- IE seemingly ignoring CSS
Hi Mike, Is that also true when you click the navigation tabs?- IE seemingly ignoring CSS
http://www.alco-owl.co.uk/index.php- IE seemingly ignoring CSS
I restored a backup of a website today and since then Internet Explorer ignores the stylesheet. Strangely if I click refresh, the page displays how it should be. Is there a general error for this or something wrong with my code? I'm not sure which bit of code is the most helpful to include here so please ask and I'll update the thread with it. - IE seemingly ignoring CSS