Joe's Blog

line

A blog by Joe Billman about programming, and other stuff

line

Archive for February, 2010

Latest Project – Rotating Flash Banner

Posted on: February 27th, 2010 by Joe

line No Comments

I just recently did a freelance project for makeityourweb.com It is a rotating banner. It is populated by XML. The XML file lets you control what images are loaded along with the time each image is up and also whether or not it has the navigation in the lower left corner. It’s pretty cool! Go check it out at http://www.kttape.com/

The Proper Way of Referencing Elements on a Web Page

Posted on: February 10th, 2010 by Joe

line 3 Comments

I was recently working on a web page that was not displaying some Flash elements properly on some people’s browsers or so I thought. After beating my head for a bit I realized what the problem was. The .swf file that I was referencing had an absolute path that included the “www.” in the URL. Here is an example: “<param name=”movie” value=”http://www.mywebsite.com/swfs/my_movie.swf” />. The problem was when someone went to the site and did not include the “www” for example: “http://mywebsite.com”. The solution to this is rather simple and should be the practice you use when referencing elements on your pages. It’s called root referencing and here is an example: “<param name=”movie” value=”/swfs/my_movie.swf” />. You leave off the “http://”, the “www” and the site name and instead just put a “/” at the beginning. This will work in all cases even if the page that is referencing the element is nested multiple folders deep.


Warning: Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP) in /homepages/16/d145171736/htdocs/php/footer.php on line 1