Clear a textarea onFocus
October 5th, 2007onFocus=”if (this.value == this.defaultValue) { this.value = ‘’; }”
IE6 and IE7 xhtml Strict Object Work Around
October 4th, 2007So you have switched from xhtml transitional to xhtml strict and now you can’t validate pages with iframes any more. Have no fear cause there is a object tag work a round that will work fine in all browsers.
Code Example:
Main HTML Page:
<object classid=”clsid:25336920-03F9-11CF-8FD0-00AA00686F13″ type=”text/html”
data=”/object_frame1.html” style=”width:353px;height:459px;”>
<p>Please Upgrade Your Browser</p>
</object>
Object Module Page
<head>
<meta http-equiv=”Content-type” content=”text/html; charset=utf-8″>
<title>Page Title</title>
<link rel=”stylesheet” href=”/css/style.css” type=”text/css” media=”screen” title=”no title” charset=”utf-8″>
<!– below controls the object tag for ie6,7 –>
<!–[if IE]><style type=”text/css”>html, body {border:0;overflow:visible;}</style><![endif]–>
</head>
Note: There is no dtd on the Module page since it seems to cause a nasty border in IE.
Post A comment if you have any questions.
Ejoy!
New Version of Mars Edit
October 3rd, 2007The new version of Mars Edit is amazing! Its a really powerful blog editing tool from Red Sweater. Mard edit was recently purchased from Ranchero who also created NetNewsWire RSS Reader. Hopefully I will be updating the blog more now that I can access the blog locally from this app.
Check it out here.
FireFox Dotted Line on Image Clicks
October 3rd, 2007Ever wonder how to get rid of that dotted line around a linked image in firefox?
Here is little code needed to remove it.
*:focus {outline: none}



