Cut and paste Lightbox Code in DW?

Hello, please bear with a newbie. I’ve designed some web pages in Fireworks, exported png’s to Dreamweaver CS4, everything links, it’s all good. Then, I discovered Lightbox. So, I made a copy of one of my exported .html files in DW and successfully (somehow) added lightbox.css, .js etc. and relevant photos, the browser previews work as planned, so far so good.
Ok, my question is I did all of this on a test .html file in DW, and have since altered the original Fireworks png. I want to export a new file from FW to DW, can’t I just cut and paste the lightbox code to the new file? how do I attach (direct it to) the lightbox.css, lightbox.js and prototype.js files? Also, if I get this to work, will lightbox stay attached if i were to go back alter, and export another new FW png (same naming)?

Thanks!

Hi lokej. Welcome to SitePoint! :slight_smile:

It’s not really clear what you are asking here.

What new file? Do you mean an image file, or a new html file?

how do I attach (direct it to) the lightbox.css, lightbox.js and prototype.js files? Also, if I get this to work, will lightbox stay attached if i were to go back alter, and export another new FW png (same naming)?

If the new file is in the same directory (folder) as the test file, nothing needs to be changed, because the links to the css file and js file should be the same (you will probably have them in the head of the document).

If you replace the old png with a new one, just save the new one to the same location and replace the old one with it. As long as it’s the same name, you won’t have to update anything else.

exported png’s to Dreamweaver CS4? I use Dreamweaver CS3, and I don’t know about export png’s to Dreamweaver CS4