









Use the SPAN Element to Define Styles Within a Block
While the DIV element can be used to designate block-level elements such as paragraphs and list items, SPAN is used within a block. And while most browsers will insert a
While the DIV element can be used to designate block-level elements such as paragraphs and list items, SPAN is used within a block. And while most browsers will insert a
Using the frame’s location object, you can load a number of different files into a frame at runtime. As you do when building any project using frames, first build a
Avoid putting double quotes inside of double quotes in your HTML code. You may not get a compiler error, but your script just won’t work. Instead, substitute single quotes for
We can pass variables from page to page with the following script: This snippet of ASP script will also automatically create hidden fields that will be dumped into all following
If you’re writing complex frame sets by hand, it’s easy to get lost in “spaghetti code.” To keep a handle on the situation, don’t build the entire frame set at
JavaScript does not have a built-in function for formatting floating-point numbers. However, it’s easy to create one using JavaScript’s String methods. For example: function format(expr, decplaces) { // Convert the
There are some differences in Cascading Style Sheet implementation in Internet Explorer 3 and 4. So you may want to choose which set of style sheets to load for your
Using the BrowserType object, your ASP pages can detect the type of browser being used to download the page. In addition, you can also test the browser for specific capabilities.
The following code can be used in the tag of an HTML document for automatic mouseover effects on all links on the page. The styles ‘a’ and ‘a:visited’ are used