Archive

Posts Tagged ‘Browser’

Using DOCTYPE and Changing Style of Scrollbar with CSS

November 7th, 2009 Mehmatrix 2 comments

If you used DOCTYPE in your pages, you may be in trouble with changing scrollbar color and style. Web developers usually define scrollbar properties in body tag in CSS. However, if you used DOCTYPE this is not going to work. All you need to do, defining scrollbar style in HTML tag in CSS file, and… Yes, that’s all!

Wrong Usage: Style.css

1
2
3
4
5
6
7
8
9
10
11
12
13
14
body{
/*
Your other body style properties…

*/

scrollbar-base-color: #C1CBD7;
scrollbar-arrow-color: #9DACBF;
scrollbar-3dlight-color: #C1CBD7;
scrollbar-darkshadow-color: #C1CBD7;
scrollbar-face-color: #C1CBD7;
scrollbar-highlight-color: #C1CBD7;
scrollbar-shadow-color: #C1CBD7;
scrollbar-track-color: #FFFFFF;
}

Click to Read Complete Article »

Bookmark and Share
Categories: CSS, HTML Tags: , , , , , ,

Navigator Object in JavaScript

October 7th, 2009 Mehmatrix No comments

We need to know how to use properties and methods of Navigator object in JavaScript to make powerful applications. Navigator object gives us to get browser information of client. There is a list of all properties and methods in Javascript.

I. All Common Navigator Properties in JavaScript

Property

Description

appCodeName :

The code name of the browser
(ie: Mozilla)

appName :

The name of the browser
(ie: Netscape)

appVersion :

The version information of the browser
(ie: 5.0 (Windows; en))

mimeTypes :

Returns array of all MIME types supported by the client

platform :

Returns the platform of visitor’s computer
(ie: Win32)

plugins :

Returns array of all plug-ins which is installed on visitor’s computer

userAgent :

Returns the user-agent header
(ie: Mozilla/5.0 (Windows; U; Windows NT 6.0; tr; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729))

onLine :

Returns bolean value of browser’s online status
(ie: true)

cookieEnabled :

Returns bolean value of browser’s cookie status
(ie: false)

cookieEnabled :

Returns bolean value of browser’s cookie status
(ie: false)


Click to Read Complete Article »

Bookmark and Share
eXTReMe Tracker