Making Flash Obey Z-Index
Filed under HTML
A common problem with Flash is that it usually will not listen to the z-index of the page. This causes drop down navigation items to appear under the flash. However, there is a neat way to make flash behave correctly while respecting the XHTML standard. More…
Emulate PHP’s Rand() Function in Javascript
Filed under Javascript
Javascript’s random number generator is lacking a lot of power. To create a number between say 0 and 10, you can do this:
number = Math.round(Math.random()*10);
Of course you can modify this slightly to fit your needs, but this should be the basics needed.
Rollover Images Without Javascript
One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually fairly simple to get working. More…
Simple XHTML Flash Embedding
Filed under HTML
The typical way mot people embed flash is pure ugly. Not only is it ugly, but it breaks the XHTML standard. Luckily, there’s a way around it which is much better than the traditional way, and as an added bonus, has a built in flash plugin check without any javascript! More…
Quickly Creating SEO Friendly Links
Filed under PHP
Over the years I have seen many different ways programmers have used mod_rewrite to make clean urls. However, I have not seen the correct way much. All you need in your .htaccess file is this: More…