gregdoolittle.com

IE + Flash Problemo

June 26th, 2007

As a result of a legal battle with a patent holder, all embedded objects in IE require you to click the object before you can activate its controls.

When we started using a flash slideshow on one of our homepages, we were in a scramble to get all the copy-edits and registration systems up and running. Now we have some time to breath, so I went back and found an article about out how to get around this problem. (Read it here)

Adding a few lines of javascript takes care of the click-to-activate problem.


objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}

You can see it on one of our sites here: www.interop.com

***update 6/26:

Noticed some conflicts caused by the above version. Mainly happening with our drop down menus, and the javascript we use in our ad network didn’t like having it’s “outerHTML” messed with. The version below works great thus far:
http://activecontent.blogspot.com/

forced scrollbars

June 9th, 2007

i realized that some of the sites i designed when i was first putting sites together all shared a common glitch. the problem was that pages with only a little amount of content didn’t get scrollbars, whereas pages with more than a screen’s capacity of content required scrollbars. the reason this is a problem is that when you navigate from one page to the next, the page layout jumps left and right by about 10px from pages with scrollbars to pages without them. minor problem, but some might say the devil’s in the details. it’s just one more way to make a site pixel perfect. i recently googled the words “forced scrollbars”, and found this article which shows how to solve this problem:

http://www.splintered.co.uk/experiments/49/

basically all you need to do is add this to your css, and you’ll get scrollbars on every page:

html { min-height: 100%; margin-bottom: 1px; }

June 4th, 2007

i usually don’t post stuff from youtube, but this guy is too neat to not pass on to anyone reading this:

Powered by WordPress