Welcome to Blogdog, here you can find useful resources on blogging, marketing and social media. Thanks for visiting!

  • A Blogger's guide to Twitter

    This helpful guide will teach you how to use Twitter like a pro and ways to boost your followers.

  • DoFollow vs NoFollow

    Building backlinks is crucial to rank your site, but what kind of links should you be after?

  • 101 Essential Apps

    Here's a list of just about every useful app you can download to your iPhone/iPad.

  • August 11, 2011

    For the past week I've been having trouble trying to find a way to post javascript in a post as code so it can be copied, instead of posting it to just show the outcome.

    This website allows you to input your code, press refresh and receive a 'postable' version of the code!

    Now, to display it in a separate box so it stands out from the text, edit your HTML and search for ]]></b:skin> by pressing ctrl+F. Right ABOVE that line copy and paste the following code:

    pre{background:#efefef;border:1px solid #A6B0BF;
    font-size:100%;line-height:100%;overflow:auto;
    padding:10px;color:#000000 }pre:hover 
    {border:1px solid #efefef;}code 
    {font-size:120%;text-align:left;margin:0;padding:0;
    color: #000000;}.clear { clear:both;overflow:hidden;}

    This code can be edited to change the colour/size/background etc. of the box and it's contents! Now whenever you want to put your 'postable' javascript inside a box (just like the one above), put your 'postable' code between the tags, <pre> and </pre>! If you have an easier way to display javascript as text, please share!

    0 comments:

    Post a Comment