09 февруари 2009, понеделник

remove Safari input blue glow.


There are two most recent used ways to remove the blue glow on safari inputs and textareas. The first is:



Method 1
Step 1 - make a surrounding DIV the size of the input box. Name this the “div.hidepack”. Use the following CSS for it:

div.hidepack {
width:250px; /* Actual width */
height:20px; /* Actual height */
overflow:hidden;
}


Step 2 add 4 pixels to both the width and height of the actual input box. Finally, set negative margins of -2px to the top and -2px to the left. Use the following CSS for it:

input.removeGlow {
width:254px; /* Actual width + 4 */
height:24px; /* Actual height + 4 */
margin:-2px 0 0 -2px;
}

Method 2 - we recommend using this method since it's code is simpler and the method is tested.
After putting all needed data in the CSS of teh input add the following:

input{
outline:none;
}

05 февруари 2009, четвъртък

Problem with installing XP on computers with sata and and sata2 HDD

In order to start the installation ox windows XP on computers with sata or sata2 hard drives follow the instructions:

1. When starting the PC enter the bios (most likely by pressing F2 button).
2. Change the mode from SATA Mode to IDE in BIOS.
- If you are using - Phoenix AwardBIOS 6.00PG BIOS go to Integrated Peripherals > SATA Devices Configuration > change SATA Mode to [IDE].
- If you are using - Phoenix SecureCore BIOS go to Advanced > SATA modes selection > change SATA Mode to [IDE].


ENJOY!!!

04 февруари 2009, сряда

Flash 8 and Cookies

The following lines present how to get and save cookies with ActionScript 2.0 for Flash ver. 8 and above:

import flash.external.ExternalInterface;


function SetCookie(cookieName, cookieValue, cookieExpires) {

    js = "function sc(){";

    if (cookieExpires) {

        js += "howlong=new Date(); howlong.setTime(howlong.getTime() + " + cookieExpires + "000);";

    }

    js += "var c = escape('" + cookieName + "') + '=' + escape('" + cookieValue + "') + '; ";

    if (cookieExpires) {

        js += "{expires=' + howlong.toGMTString() + '; ";

    }

    js += "path=/';";

    js += "document.cookie = c;";

    js += "}";

    ExternalInterface.call(js);

}


function GetCookie(cookieName) {

    var r = "";

    var search = cookieName + "=";

    var js = "function get_cookie(){return document.cookie;}";

    var cookieVariable = ExternalInterface.call(js).toString();

    if (cookieVariable.length > 0) {

        offset = cookieVariable.indexOf(search);

        if (offset != -1) {

            offset += search.length;

            end = cookieVariable.indexOf(";", offset);

            if (end == -1) {

                end = cookieVariable.length;

            }

            r = unescape(cookieVariable.substring(offset, end));

        }

    }

    return r;

}

03 февруари 2009, вторник

How to remove borders from input with CSS?

If you want to remove border from an input by using CSS you have to write the following:

<style type="text/css">

input{

border:0px;

}


</style>

"border:none;" will not work for this issue

CSS hack - only for Safari browser

If you want to make a part of your css to work only for Safari this is one of the ways to do it:

@media screen and (-webkit-min-device-pixel-ratio:0) {

Whatever you put in here will be visible only for Safari

}

Enjoy using it!