Recent Notes
Displaying keyword search results 1 - 9
Created by James on June 22, 2010 18:56:40
Last update: February 13, 2012 10:25:47
Version 1.6.4:
<!-- jQuery -->
<script type="text/javascript" ...
Version 1.7.1:
<script type="text/javascript" src="https://ajax.g...
Google URL: http://code.google.com/apis/ajaxlibs/documentation/#jquery
Created by James on January 10, 2011 15:20:10
Last update: February 03, 2012 10:10:14
Dojo ShrinkSafe: http://shrinksafe.dojotoolkit.org/ : command line utility written in Java, based on Rhino - JavaScript engine written in Java.
Douglas Crockford's JSMIN: http://crockford.com/javascript/jsmin : command line utility written in C, can download MS-DOS exe.
Dean Edwards' Packer: http://dean.edwards.name/packer/ : online tool, or .NET, Perl, PHP application.
YUI Compressor: http://developer.yahoo.com/yui/compressor/ : command line utility written in Java.
Google Closure Compiler : command line Java application, web application, or RESTful API.
One problem is, the compressor utility may not be 100% reliable. So make sure to test the compressed script.
Created by James on July 19, 2009 20:51:23
Last update: January 11, 2011 20:14:18
If CSS3 border-image is properly supported, making a rounded corner box is very easy. You just need a round corner image like this: The following markup:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ... would render like this (try it in Firefox 3.5 and Google Chrome): However, IE as of version 8.0 does not support border-image . So until border-image is reliably supported in all major browsers, we still have to rely on tried and true tricks to make it work. In general, I found three general categories of tricks to make rounded corners: Good old tables. This trick creates a table of 9 cells and uses the 8 cells on the perimeter to render the borders and rounded corners. The central cell is used for...
Created by Dr. Xi on October 02, 2008 21:35:59
Last update: January 11, 2011 19:51:26
This page demos a pop up window centered on the screen. In the demo tab, the pop up be centered relative to the tab panel.
<html>
<head>
<script language="JavaScript" ...
Created by woolf on February 03, 2010 04:02:07
Last update: February 03, 2010 04:03:18
Redirect without delay:
<html>
<body>
<script type="text/javascript...
Redirect with delay:
<html>
<body>
<script type="text/javascript...
Created by Dr. Xi on November 23, 2009 23:37:55
Last update: November 24, 2009 04:04:20
IE can be started from JScript as an ActiveX control. Create a file named start_ie.js with the following contents and run (from command line or Run box):
var browser = new ActiveXObject("InternetExplorer....
Created by James on October 11, 2009 21:15:53
Last update: October 11, 2009 21:19:39
Many techniques for making rounded corners do not work well when the element being rounded is displayed on a background with a different color (or multiple colors).
Example 1: Nifty Cube with JavaScript
<html>
<head>
<base href="http://www.html.i...
Example 2: modx Simple Rounded Corner Box
<html>
<head>
<title>Round Corner</title>
...
Example 3: CSS3 (does not work in IE)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
Example 4: This is one that actually works ! The nifty corner technique can be tweaked to be background friendly, although the JavaScript version didn't work for some reason.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
Created by James on July 04, 2009 16:03:22
Last update: July 04, 2009 16:03:22
With about 200 lines of JavaScript, you can drag and drop table content. Content of the HTML table cells can be dragged to the another table cell or another table.
Author tested script in FireFox 3, Internet Explorer 6 and Google Chrome.
Link:
http://www.redips.net/javascript/drag-and-drop-table-content/
Created by Dr. Xi on March 25, 2008 23:11:26
Last update: March 25, 2008 23:11:26
The current URL is given by window.location . If you set window.location to a new value, the browser loads the new document:
window.location = "http://www.google.com";
Previously document.location and document.location.href was used for this purpose, but are now deprecated.