Need help with some code

  • Author
    Posts
  • #521213

    shane3x
    Member

    I currently have a live chat support button on my website. It dynamically changes between an online and offline picture depending on my status. I would like the image to sit in the centre, currently it positions itself to the left.

    I’d normally copy/paste the code into the format I do my other ones in but because I want to retain the dynamic nature of my status I’m not actually sure how to go about fixing this if possible without breaking something. Below is the code. Thanks in advance for any help provided.

    <!– Begin of OCC code for all deparments/websites–>
    <table border=”0″ cellpadding=”0″ cellspacing=”0″>
    <tr><td align=”center”><img src=”http://www.onlinechatcenters.com/status-14013″ border=”0″ alt=”Online Chat Support”></td></tr>
    <tr><td align=”center”>Live Support by OCC</td></tr>
    </table>
    <!– End of OCC code –>

    The blog I need help with is shane3x.com.

    #521307

    shane3x
    Member
    <!-- Begin of OCC code for all deparments/websites-->
    <table border="0" cellpadding="0" cellspacing="0">
    <tr><td align="center"><a href="http://www.onlinechatcenters.com/chat/?id=14013&dep=0" target="_blank"><img src="http://www.onlinechatcenters.com/status-14013" border="0" alt="Online Chat Support"></a></td></tr>
    <tr><td align="center"><a href="http://www.onlinechatcenters.com/" style="font-family:Arial, Helvetica, sans-serif;font-size:9px;font-weight:normal;color:#000;text-decoration:none;" title="Live Support by Online Chat Centers">Live Support by OCC</a></td></tr>
    </table>
    <!-- End of OCC code -->
    #521313

    Change the code to this:

    <div align="center">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr><td align="center"><a href="http://www.onlinechatcenters.com/chat/?id=14013&dep=0" target="_blank"><img src="http://www.onlinechatcenters.com/status-14013" border="0" alt="Online Chat Support"></a></td></tr>
    <tr><td align="center"><a href="http://www.onlinechatcenters.com/" style="font-family:Arial, Helvetica, sans-serif;font-size:9px;font-weight:normal;color:#000;text-decoration:none;" title="Live Support by Online Chat Centers">Live Support by OCC</a></td></tr>
    </table>
    </div>

    #521319

    shane3x
    Member

    It works great, Thank you.

The topic ‘Need help with some code’ is closed to new replies.