Archive for the ‘Web Designing’ Category

CSS Differences in Internet Explorer 6, 7 and 8

Friday, November 6th, 2009

CSS Differences in Internet Explorer 6, 7 and 8” ,
Hope it would be helpful to you guys…mostly Designers….

Click here:

http://www.smashingmagazine.com/2009/10/14/css-differences-in-internet-explorer-6-7-and-8/


Pagination-gallery-examples-and-good-practices

Friday, November 6th, 2009

Pagination-gallery-examples-and-good-practices” ,
Hope it would be helpful to you guys…

Click here:

http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/


The Lightbox Effect without Lightbox

Friday, November 6th, 2009

We’re not afraid of pushing the envelope on the site, so if we like an idea, we’ll roll with it until too many of our users tell us it sucks. (That hasn’t ever happened incidentally)

When I first started trying to figure out how to do this, I wasted a lot of time trying to hack the Lightbox code and it was ugly. I thought better of using code I wasn’t proud of, so here’s how I did it:



#overlay{

    background-image: url(/images/overlay.png);

    position: absolute;

    top: 0px;

    left: 0px;

    z-index: 90;

    width: 100%;

    height: 100%;

}

* html #overlay{

    background-color: #333;

    background-color: transparent;

    background-image: url(blank.gif);

    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(

        src="/images/overlay.png", sizingMethod="scale");

}

#box{

    width:300px;

    background:#2d2d2d;

    padding:10px;

    border:2px solid #eee;

}

#close{

    position:absolute;

    top:-5px;

    right:-5px;

    cursor:pointer;

}

Most the css was lifted straight from the Lightbox css. Next is the HTML, which also includes Lightbox’s neat little close image.



<div id="overlay" onclick="hideBox()" style="display:none"></div>

<div id="box" style="display:none">

    <img id="close" src="/images/close.gif" onclick="hideBox()" alt="Close" 

         title="Close this window" />

    Here's a bunch of really sweet content!

</div>

And finally we have the javascript. The center function was lifted directly from here with a few slight modifications. Note: You also need Prototype for this script to work.



function showBox(){

    $('overlay').show();

    center('box');

    return false;

}

function hideBox(){

    $('box').hide();

    $('overlay').hide();

    return false;

}

function center(element){

    try{

        element = $(element);

    }catch(e){

        return;

    }

    var my_width  = 0;

    var my_height = 0;

    if ( typeof( window.innerWidth ) == 'number' ){

        my_width  = window.innerWidth;

        my_height = window.innerHeight;

    }else if ( document.documentElement &amp;&amp; 

             ( document.documentElement.clientWidth ||

               document.documentElement.clientHeight ) ){

        my_width  = document.documentElement.clientWidth;

        my_height = document.documentElement.clientHeight;

    }

    else if ( document.body &amp;&amp; 

            ( document.body.clientWidth || document.body.clientHeight ) ){

        my_width  = document.body.clientWidth;

        my_height = document.body.clientHeight;

    }

    element.style.position = 'absolute';

    element.style.zIndex   = 99;

    var scrollY = 0;

    if ( document.documentElement &amp;&amp; document.documentElement.scrollTop ){

        scrollY = document.documentElement.scrollTop;

    }else if ( document.body &amp;&amp; document.body.scrollTop ){

        scrollY = document.body.scrollTop;

    }else if ( window.pageYOffset ){

        scrollY = window.pageYOffset;

    }else if ( window.scrollY ){

        scrollY = window.scrollY;

    }

    var elementDimensions = Element.getDimensions(element);

    var setX = ( my_width  - elementDimensions.width  ) / 2;

    var setY = ( my_height - elementDimensions.height ) / 2 + scrollY;

    setX = ( setX &lt; 0 ) ? 0 : setX;

    setY = ( setY &lt; 0 ) ? 0 : setY;

    element.style.left = setX + "px";

    element.style.top  = setY + "px";

    element.style.display  = 'block';

}

That’s all there is to it! To make all of this goodness appear, you just need to call showBox().

The center function is a bit long, but most of that is just browser compatibility code.


78+ Awesome Gradient Resources for Web Design

Friday, November 6th, 2009

78+ Awesome Gradient Resources for Web Design” ,Hope it would be helpful to you guys…

It is unevitable to use gradients for web designers. The links above is a huge collection for you to find or make the best gradient effects for your website. They are not only  about photoshop, illustrator or gimp, but also tools, generators and inspiration. If you still not using gradients, I think after this post you will start using some.Click here to view:

http://www.listelog.com/78-awesome-gradient-resources-for-web-design/


Making A Cool Login System With PHP, MySQL & jQuery

Friday, November 6th, 2009

Making A Cool Login System With PHP, MySQL & jQuery” ,Hope it would be helpful to you guys…


Demo :

http://demo.tutorialzine.com/2009/10/cool-login-system-php-jquery/demo.php#

Download code:

http://demo.tutorialzine.com/2009/10/cool-login-system-php-jquery/demo.zip

Tutorial:

http://tutorialzine.com/2009/10/cool-login-system-php-jquery/


15-image-effects-plugin-with-mootools-jquery

Friday, November 6th, 2009

15-image-effects-plugin-with-mootools-jquery” ,Hope it would be helpful to you guys…

Click here:

http://www.listelog.com/15-kick-ass-image-effects-plugin-with-mootools-jquery/