Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Allan87

Members
  • Joined

  • Last visited

Everything posted by Allan87

  1. Allan87 replied to Allan87's topic in Frontend
    Ah encoding. Thanks for all your help
  2. Allan87 replied to Allan87's topic in Frontend
    Weird thing is it doesn't show them characters on the actual page on the server.
  3. Allan87 replied to Allan87's topic in Frontend
    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
  4. Allan87 replied to Allan87's topic in Frontend
    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.
  5. Allan87 replied to Allan87's topic in Frontend
    Poor it is then. Are there any available alternatives in a div setup?
  6. Allan87 replied to Allan87's topic in Frontend
    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.
  7. Allan87 replied to Allan87's topic in Frontend
    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>
  8. Allan87 replied to Allan87's topic in Frontend
    How would I use a background image between the two corners without using a table?
  9. Allan87 replied to Allan87's topic in Frontend
    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"; } } ?>
  10. Thanks for all your replies. I've managed to rectify the problem using; <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  11. Thanks Pat, unfortunately still the same. If the coding is correct is this more likely to be a server problem?
  12. Allan87 posted a topic in Frontend
    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>
  13. 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.
  14. Hi Mike, Is that also true when you click the navigation tabs?
  15. http://www.alco-owl.co.uk/index.php
  16. 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.