tutorial JULY 3, 2001 • page 1, 2, 3, complete, Home

Can ImageReady and Dreamweaver Get Along?
[Page 3 of 3]

2. Now, back to the "test1.html" document. Look for the <BODY> tag. In it, you will see something that looks like this: ONLOAD="preloadImages();" . Copy just that code (including the quotation marks), and paste it into the <BODY> tag in your destination file.


The highlighted portion is the "ONLOAD" script, which you will also
need to paste into your new document.

3. Finally, the easy part is copying and pasting the remaining script, table and images. Go back to layout view in both of your documents. In the "test1.html" document, you should see your images with a yellow shield on top and bottom. Select everything, including the shields, and copy it all. Then paste it wherever you want in your destination document.

NOTE: Preview the "test1.html" document in your browser before you complete this last step. If the rollover shows broken images, you're going to have to do a simple manual tweak, detailed below.

4. Further problems?
Now, if you go ahead and preview your page, you might see that in all states besides Normal, you're getting broken images. This is because Dreamweaver's file management system sometimes doesn't recognize relative image links inside JavaScripts created by ImageReady. This is easy enough to fix.

In your Code view, you will see something like this: ONMOUSEOVER="changeImages('test1_03', 'rollover1slices/test1_03-over.gif' . The part that's relative is the 'rollover1slices/test1_03-over.gif' . So all you have to do is perform a find/replace for 'rollover1slices/ . In my case, my directory structure requires me to go up two levels in the directory, then into the images/ directory before I can get to the rollover1slices/ directory. So, in my find/replace dialog, I look for 'rollover1slices/ and replace it with '../../images/rollover1slices/ . (The little "../" tells the browser to go up one directory. If you need to go up more than one directory, you can just add in additional ones, such as "../../" for two directories, "../../../" for three directories, etc.)


Dreamweaver's Find/Replace

You need to do this again because some of the code will use single quotes, while other parts will use double quotes. So, open up the find/replace dialog again, and change the single quotes to double quotes, leaving everything else the same. Then click Replace All.

Final thoughts
So why all the trouble? If you use Dreamweaver, why not just use Fireworks? And if you use ImageReady, why not just use GoLive? Well, that's not the way it always works out. Some people swear by Fireworks and Dreamweaver. Others swear by GoLive and ImageReady. But there's an awful large part of the population that likes ImageReady and Dreamweaver. After all, if you prefer to do you animation in ImageReady and your HTML in Dreamweaver, a little five-minute conversion time isn't too much of a hassle.

Both Adobe and Macromedia should work to make this a little bit easier on the users. The burden will likely fall on Macromedia for two reasons. First, Dreamweaver is highly extensible, so writing an importer for ImageReady files shouldn't be too difficult. Second, practically every designer in the world has ImageReady by virtue of the fact that it's distributed free with Photoshop.

Neither company should consider this an issue of caving in to the other. It's simply a matter of making life easier on the user. And, at this stage, the company that offers more import formats is likely to come out ahead.

page 1, 2, 3, complete, Home


Post a comment or question in the Digital Media Designer User Forum!
Dave Nagel is the producer of Creative Mac and Digital Media Designer; host of several World Wide User Groups, including Synthetik Studio Artist, Adobe Photoshop, Adobe InDesign, Adobe LiveMotion, Creative Mac and Digital Media Designer; and executive producer of the Digital Media Net family of publications.
tutorials 2001

[an error occurred while processing this directive]