Sometime you don’t wish to use JavaScript frameworks on simple web applications, but you hardly need a cross-browser CSS selector. …
Page: Javascript
JavaScript – Floating-Point Rounding Error
In JavaScript the floating-point values includes a decimal point and at least one number after the decimal point. The floating-point …
jsFiddle – An Online Editor for JavaScripts, HTML5 and CSS3
Recently I was thinking about to design a Live editor for CSS and HTML, while googling I found an amazing …
jQuery Backstretch
I have found one interesting stuff in jQuery, to resize the image with window dimension. ie if you want to fit the background …
Detect iPod, iPad and iPhone Using JavaScript
JavaScript code to detect the user-agents of iPhone, iPad or iPod.
if (/iPad|iPod|iPhone/.test(navigator.userAgent)){
// do ur stuffs for apple
}else{
// do ur stuffs …
Include js files inside a js file
Some times you want to include or load other .js files inside another .js files or on document. JavaScript doesn’t …
Vertical Floating Menu With Accordion Effect Using CSS & jQuery
It is a combination of 3 types of menu styles, Floating, Sliding and Accordion with the css and jQuery. The …
Javascript Common Escape Sequences
It’s better coding practice to use escape sequences, because they make your code easier to read. Escape sequences are also …
JavaScript: The Good Parts – Speaker: Douglas Crockford
JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in …
Common methods for indicating important comments
Some common methods for indicating important comments are TODO, BUG, KLUDGE and TRICKY. You can try this in any language, …
Orkut Style Profile Picture Upload Using jQuery and Ajaxupload
We can’t apply any style over the html file element. But with the help of jQuery and Ajaxupload plugins we …
Creating a simple fade over effect – JQuery
Here , i will tell you how to add a fade over /fade in effect to image button in jquery. …
document.all vs document.getElementById
document.all() - is a non-standard way of accessing DOM elements. It was introduced in Internet Explorer 4, because the W3C DOM …
Creating a simple popup
This tutorial will guide you create a simple popup based on CSS and Javascript
1. Create a simple div
HTML
<div id=”overlayContent” style=”display:none;z-index:110;width:100%;position:absolute;left:0;top:25;height:200px;”> …
Changing the color of the active link
Set the color of active link when the selected page loads.
write the active class style for the link.
The CSS
.active
{
color:red;
}
put all …
