posted 2 years ago

Simple 3 Stage Image Based Buttons

http://callumcarolan.co.uk/yellow_button.html


<style type=text/css>
    .button
    {
        height: 44px;
        width: 94px;
        background: url('yellow_button.png') no-repeat top;
        cursor: pointer;
        /*BELOW IS FOR DISPLAY PURPOSES ONLY*/
        margin-right: 10px;
        float: left;
        /*ABOVE IS FOR DISPLAY PURPOSES ONLY*/
    }
    .button:hover { background-position: center; }
    .button:active { background-position: bottom; }
</style>



posted 2 years ago

Untitled

So I've started a template for a company called indyapps and it's completely HTML5 and CSS3. Thoughts so far?

So I've started a template for a company called indyapps and it's completely HTML5 and CSS3. Thoughts so far?

posted 3 years ago

HTML5 Shiv not working?

I've started using HTML to code my projects and I've been using HTML5 Shiv but never tested the IE compatability thing and i did today and it isn't showing my HTML5 elements? Any reason for this? Heres how I include it:

<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
posted 3 years ago

Would there be much point in using this?

                $(function(){
      $('a').click(function(){
            href = $(this).attr( 'href' );
            $('body').load( href );
            return false;
      });
});                
Raw

I was wondering if there is a more efficient way to load full pages with ajax.

posted 3 years ago

Anybody use MongoDB?

I've recently started a project and I'm using MySQL but I've heard that Mongo is faster and was wondering if anyone has experience with it as I'd like to give it a try?

posted 3 years ago
posted 3 years ago

Shorthand If Statements in PHP

                <?php

$colour = $_GET['c'];

echo ($colour !== 'black' ? 'this is a real colour' : 'just boring old black' );

?>                
Raw

It's incredibly useful once you get into the habit of using it.