Archive for February, 2008
Thursday, February 28th, 2008
Here is a simple way to create rounded corners without images needed. It is supported by IE, Firefox, Opera and etc. This idea is to draw lines of certain length in rblocktop and rblockbottom divs. Margin’s value controls line length (width).

(more…)
Popularity: 8% [?]
Posted in CSS | No Comments »
Wednesday, February 27th, 2008
Hands up all those who have ever needed to have some kind of style sheet switcher on their site. Yep, that’s what I thought, at least a couple of you! Seriously though, with the current move toward more fully accessible websites, the need for various stylesheets to be attached to your pages has become more of a neccessity than ever before. Indeed we use the following solution ourselves and you can see it in action by clicking on the ‘Zoom’ (then ‘Zoom Out’) button at the top of the page.
What is this?
Essentially what you have is an array of predefined stylesheets that are called and set to and from a cookie (this cookie stores a numerical value representing the stylesheet number that is selected). Make sure you advise visitors you use cookies in your terms and conditions. If the visitor has chosen to view the site in a style other than the one defined as default, then when they return to the site at a later date, it should be presented to them in the style that they were previously viewing in. Of course this is fine as long as your visitor has Javascript enabled in their browser so that the cookie can be set and retrieved, but what if they don’t? Well the script will still work by making use of PHP SESSION variables to store the same data. This does mean that the style sheet selected will not be stored on the clients machine for future use, but hey, we can’t have it all right?
(more…)
Popularity: 13% [?]
Posted in CSS, PHP | No Comments »
Saturday, February 23rd, 2008
.htaccess is a text file containing commands that instruct web servers how to behave in certain situations, providing a way for you to make configuration changes on a per-directory basis.

.htaccess Editor enables you to easily create .htaccess files online without having to learn complex .htaccess rules. With the .htaccess editor, you can generate .htaccess code includes:
* Basic authentication – used to specify the security restrictions for the particular directory.
* Custom error pages – redirect visitors to pages that match your site design instead of the standard server error pages.
* Password protection – restrict access to certain directories by requiring a password to view the contents.
* Default pages – set default pages on a directory-by-directory basis.
* Redirect directives – redirect requests for a specific file or directory to a new destination.
* Access restrictions – allowed or denied certain addresses.
Creating .htaccess files has never been easier with .htaccess Editor.
Popularity: 8% [?]
Posted in Miscellaneous | No Comments »
Friday, February 22nd, 2008
As a site or blog owner, you definately want to know where your visitors come from. I found a nice widget which can help you get to see exactly where your site visitors are from – live!

Embeddable maps are available in two sizes, one just like the map to your right, and a smaller version for sites that could use the savings in space. You can build your own by clicking here.
The following is sample map for Office-it.orG.
(more…)
Popularity: 8% [?]
Posted in Miscellaneous | No Comments »
Tuesday, February 12th, 2008
Two websites for Stanley Lau, you will like it and wallpaper available to download.
1. http://artgerm.deviantart.com
2. http://www.imaginaryfs.com

(more…)
Popularity: 29% [?]
Posted in CG Art | No Comments »
Friday, February 1st, 2008
Much to the chagrin of Web designers everywhere, the HTML 4.0 Strict and XHTML 1.0 Strict recommendations of the W3C no longer include the target attribute of the tag. The Transitional versions of the specifications still include it, but by definition, these specs are on the way out.
Whatever your personal feelings on the practice, the most common application for this attribute — opening a link in a new browser window with target=”_blank” — is still useful on today’s Internet. So if the standards say we shouldn’t use it, how should we go about creating new-window links, while following the latest Web standards?
You can read the original articles from here: http://www.sitepoint.com/article/standards-compliant-world/
The Complete Script
Here is the complete script. Notice the last line, which assigns the externalLinks function to the window’s onload event handler. This triggers the function when the document has finished loading.
(more…)
Popularity: 9% [?]
Posted in Javascript | No Comments »