Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Wednesday, December 08, 2010

Hosted jQuery

head
script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js">
/script
/head

or

head
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
/script
/head

All Javascript in one page


Contents:
    Review: 
ReviewAllocationSimple Examples;
    JavaScript Language: 
Values, Data type conversion, Variables, Literals, Expressions, Operators, Statements, Functions, Built-in Functions, Objects, Built-in Objects, Event;

    Built-in JavaScript Objects:
Root (Root Properties, Root Methods),
Array (Array Description, Array Properties, Array Methods),
Boolean (Boolean Description),
Data (Data Description,Data Methods),
Function (Function Description),
Image (Image Description,Image Properties),
Math (Math Description, Math Properties, Math Methods),
Number (Number Description,Number Properties),
String (String Description,String Properties,String Methods);
    Other: Other;
    Similar Sites: 
MANUAL, Cheat sheets, HTML, CSS, XML, DTD, JavaScript, W3C DOM, SQL, SSI, Tell a friend, Free Icons, Itlibitum, Corp..

Thursday, April 19, 2007

Country Drop Down List for Web Forms

Monday, March 19, 2007

dropdown states




-- Select --
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
District of Columbia
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming


public string SelectedValue
{
get
{
return ddlStates.SelectedValue;
}
set
{
ddlStates.SelectedValue = value;
}
}

*

public string id
{
set
{
ddlStates.ID = value;
}
}

public string ValidationEnabled
{
set
{
rfvStates.Enabled = Convert.ToBoolean(value);
}
}

public string ValidationGroup
{
set
{
ddlStates.ValidationGroup = value;
rfvStates.ValidationGroup = value;
}
}

public string ValidationErrorMessage
{
set
{
rfvStates.ErrorMessage = value;
}
}

public string SelectedValue
{
get
{
return ddlStates.SelectedValue;
}
set
{
ddlStates.SelectedValue = value;
}
}

public short TabIndex
{
set
{
ddlStates.TabIndex = value;
}
}

Monday, October 24, 2005

SimpleBits | Magic Icons for Lazy People (like me)

A neat little trick for those that want to change a site’s colors — but also create only one set of images that also reflects those changes. It’s been done on numerous sites, and I’ve employed the method on Fast Company with the redesign done back in April.
The idea is pretty darn simple, and works best with two-color images. Create a two-color .gif image and choose one of the colors to be transparent. Next, we’ll “fill in” the missing color with CSS using background. Change the CSS rule and the images will change with it. Very simple — but effective, and a heck of a lot simpler than creating multiple sets of icons.

Here’s an example (using inline styles to demonstrate). Below is a small little icon (13px x 13px) that is white and transparent. I’ll fill in the transparency with a few different colors using the same icon image, repeated:



On Fast Company I place icons within h3 headings and style them like this:


h3 img {
background: #369;
vertical-align: middle;
}
It’s important to note that because I’m using white as the visable color, the icons will be invisible on the un-styled version of the page. This could an unintended benefit. Keeping decorative images entirely in the CSS file using background-image is arguably a more ideal solution — but the chameleon effect you can create with one set of transparent images is a nice little trick.

Thursday, September 22, 2005

Monday, February 28, 2005

HTML: desable the theme on the page

<meta equiv="MSThemeCompatible" content="No">

JAVASCRIPT: Trim

String.prototype.trim = function() {
// skip leading and trailing whitespace
// and return everything in between
var trimmedString = this
trimmedString = trimmedString.replace(/^\s+/,"");
trimmedString = trimmedString.replace(/\s+$/,"");
return trimmedString;
}
//using:
var trimmed_str=field_name.value.trim();

HTML: link style

A,A:LINK,A:VISITED,A:ACTIVE,A:FOCUS{
color:#16420A;
text-decoration:underline;
xxx: expression(this.hideFocus = true);
}

JAVASCRIPT: createPopup

var macamMailPopup = window.createPopup();

function openMacamMailPopup() {
var popupBody = macamMailPopup.document.body;
popupBody.style.backgroundColor = "lightyellow";
popupBody.style.border = "solid black 1px";
popupBody.innerHTML = document.getElementById("macamMailPopupHtml").innerHTML;
macamMailPopup.show(0, 0, 250, 85, document.getElementById("macamMailComment"));
}