Convert Word HTML to W3C Valid code in Dreamweaver

May 21st, 2007 by Steve

If you have ever use Microsoft Word to create a web page, you may have noticed a lot of extra code if you examined the HTML that was generated. If you have Word HTML that you want to clean up rather than build a whole new page from scratch, try the following steps. In Dreamweaver, start a new document, then switch to the Design view.
Open the Word generated HTML page in a browser (I prefer Firefox, but IE seems to work for this also). Select all (you can use the edit menu) and copy the page. In Dreamweaver, paste into the Design view. Switch to Code view, and you will probably notice some ole links (something like this: <A name=”OLE_LINK8″>) along with random empty tags. Remove all of these.
Next, In the Commands menu, click “Clean Up Word HTML”. This gets rid of the extra style sheet garbage created by Word.
If you want the pages to validate (w3c), links may need to be fixed. If any of them had a coded ampersand, (&amp;), they got changed to uncoded ampersands (&) when you copied the code into Dreamweaver, so you will need to change them all back. Be careful if you use Find and Replace, because if there are already ampersands with the HTML code (&amp;), they will be broken. You may want to just do a “Find” first, and list all the occurances of the ampersand.
As with all our tips, feel free to add a helpful comment.

Posted in | 38 Comments »

Insert Flash Games on Your Web Page

May 15th, 2007 by Steve

You may have seen old style arcade games such as Asteroids on we pages and wondered how to put one on your site. It’s easy, and free! Some of them can be found on our MySpace codes and tweaks site: myspace.xanadu-fx.com/games/
If you’re putting the code on a MySpace page, just follow the instructions on that page. If you want to put the game on a regular web page, copy the code from that page, then paste it into the place you want it. The code is set to display the game at 300×200 resolution, but these values can be increased. Just be sure the 3 to 2 ratio stays the same. For instance, the size could be WIDTH=450 HEIGHT=300, 600×400, or even 750×500. Any larger than 750 width could cause problems for visitors to your site if their display resolution is set for 800×600, so I would not recommend using anything above the 750×500 resolution. Also, if the code is not for use on MySpace, use only the embed tag so the code will look something like the following:
<EMBED src="http://www.neave.com/games/asteroids/asteroids.swf" menu="false" quality="high" WIDTH=450 HEIGHT=300 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer/">
Here’s a look at Asteroids using width=375 and height=250:

Posted in , , | 15 Comments »

Seamless Textures

May 8th, 2007 by Steve

I’ve added more seamless textures to the site, available to anyone for no cost (as always). These are mostly fractal based, but have several different looks, so be sure to take a look. To change the background of a web page, add this line to your style sheet:
body {
background-image: url(http://www.xanadu-fx.com/tiles/folder/filename); }
and change the folder and filename to match the image that you want to use.
Using an image editor such as Photoshop or Fireworks, or a free online editor like the one found at www.myimager.com, you can change any of the free textures to suit your needs.
Here’s an example using one of the fractal tiles. The original looks like this:
seamless tile
Change the hue, and you can get something like this:
seamless tile green
If you have light colored text or artwork, you might want to darken the background:
seamless tile dark
Change the hue and make it darker:
seamless tile dark green
Try the inverse (or negative) function too:
seamless tile inverse
The main thing to remember, is to just try everything and see how it looks!

Posted in , | 7 Comments »

Firefox Web Developer Extension

May 4th, 2007 by Steve

One way to save a lot of time when designing or debugging web sites is to add the Web Developer Extension to Firefox. It consists of a toolbar and menu with several great features.
With it installed, you can edit style sheets (or HTML) in real time, which saves a lot of FTP and preview time.
Also, you can display just about anything you can imagine such as Id and Class details:
Display drop down menuId and Class screen shot
The extension also has an “outline” feature (screen shot) – tables, cells, block level elements and a lot more:
outline elements
Other features allow the user to hide or outline images, resize the browser to 800×600 or other custom sizes, and use the W3C validation tools with one click:
Validation Tools
The Web Developer Extension can be found at chrispederick.com

Posted in , | 8 Comments »

How to choose and buy PC parts

May 2nd, 2007 by Steve

This is a short guide to buying PC parts. The first step is to read reviews and narrow down your choices. My favorite site for hardware reviews is tomshardware.com (also known as THG). There are many other sites, such as AMDmb.com, arstechnica.com, socketa.com, anandtech.com and hardwarecentral.com just to name a few. If you’ve gone to the above sites and narrowed down your choices to between 2 or 3 parts, you might want to google for the part names and the word “reviews”. The important thing is to do your research. Do you want to spend all your spare time (or money) fixing your PC and/or reinstalling software and restoring data? Don’t buy parts just because they are cheap.
Once you narrow down your list, you can get a good idea of the price range for them by visiting price comparison web sites such as PriceWatch, Google Product search or PriceScan.
If you live near a Fry’s, you might be able to find your parts there for a reasonable cost. As far as online vendors, I prefer newegg.com, formerly known as Egghead Software. Their prices are usually the lowest, they ship very quickly, and their customer service is top notch. Also, you will find reviews by customers for almost every product, including any negative ones. Once you get your parts, save your receipts.

Posted in | 2 Comments »

Tables, bordercolor w3 validation errors, and CSS

May 1st, 2007 by Steve

If you are trying to validate your HTML with Dreamweaver or w3.org, you may have noticed errors stating there is no such attribute as “bordercolor”. Once again, CSS saves the day. The quick solution is to add a style class then insert the tables in a span:
.tbblue table, .tbblue td { border: 1px solid #0000ff; background-color: #000000; color: #00FFFF;}

<span class="tbblue"> <table width="60%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>=1=</td><td>=2=</td>
</tr>
<tr>
<td>=3=</td><td>=4=</td>
</tr>
</table></span>

Should result in this 2×2 table:

=1= =2=
=3= =4=

Another option does not even require the use of CSS; Just give the table a background color and cellspacing a size equal to your desired border, then give the table cells a different background color. If you put the table in a span like I did in the first example, you can avoid having to define the background color (bgcolor=”#000000″) in every table cell. Instead, add something like this to your style sheet: .tbblue td {background-color: #000000;}
Here’s the code for the non-CSS version:

<table bgcolor="#66ccff" border="0" cellpadding="0" cellspacing="1" width="50">
<tr>
<td bgcolor="#000000">=1=</td>
<td bgcolor="#000000">=2=</td>
</tr>
<tr>
<td bgcolor="#000000">=3=</td>
<td bgcolor="#000000">=4=</td>
</tr>
</table>

=1= =2=
=3= =4=

Posted in , | 13 Comments »