You have probably seen websites that have images with drop-shadows. It gives the image a three-dimensional floating effect. Usually the images are given drop-shadows with an image editing software like Photoshop. In IE, a drop-shadow is easy to achieve using the DropShadow filter. Unfortunately, this method is not standards compliant and only works on Internet…
Category: Programming and Development
Sulekha: A text-based Markov-chain generator
I’ve finished work on the projects page. Sometimes I’ll have a passing interest in something that leads me to write some code for fun. Yes, you read right. I like to code… for fun. Anyway, this is something I’ve done ever since I started programming way back in 1991. I’ve written a bunch of cool…
innerHTML alternative for XHTML documents in Firefox
I finally figured out an alternative to using innerHTML for an XHTML document in Firefox.
innerHTML and createContextualFragment problems when Firefox renders XHTML
If any of you use Firefox, then you’ll have noticed that the “Preview Comment” feature doesn’t work anymore. It stopped working after I converted this site over to XHTML. Initially it worked (even though it validated as XHTML 1.1) because I was setting the mime-type to text/html. To make it completely compliant, I set the…
This site is XHTML 1.1 Valid
I finally got this site to validate! The folks over here were really helpful, and pointed out that I wasn’t assigning values to my objects’ style attributes properly. For example, I was doing: instead of: The second way is the correct way because it is important to specify units for your attributes. In addition, Firefox…
Live! Preview and XHTML Compatibility
I’ve added a new feature called “Live Preview”. You can see your comment as it will appear, right as you type it. I randomly just came up with the idea yesterday – I figured I could use the same code I have in place for the preview, for the Live Preview as well. I just…
Preview Button and no more Iframes
I have added a “Preview Comments” button to the comment submission form. So now, you’re able to preview your comments before submitting them. The preview will show you your comments exactly as they will appear (after they have been submitted). The other big thing is the removal of iframes. I thought iframes were really freaking…
Scrolling problems
I’m having some problems with my Javascript code when it comes to scrolling with the mouse-wheel. You have to focus out side the “content” for it to scroll properly, especially in journal entries where the content is really long. I have an idea in mind, but it involves restructing completely. I’m thinking of removing the…
Formatting Tools
I added some formatting tools to the Comment Submission form. I need to change some of the images to better describe what they do. They should be mostly self-explanatory though. If you hover your mouse over the button, a little tooltip should appear, telling you what it does. If you click a button without selecting…
XHTML and Episode III
Getting this site to be XHTML compliant is a total bitch. Anyway, today (well, tomorrow really) we are going to see Episode III. It’s the 12:01 showing. I remember when I went to see Episode II three years ago. It was really awesome, and I liked it. But I guess the feeling sorta died down…