PDA

View Full Version : JavaScript problem....


Romulus
05-04-2002, 03:41 AM
I have an image map that I made using Photoshop and I want the buttons to change like a regular rollOver as well. However, I've written the script and it doesn't seem to work. I don't have it telling me that there are errors or anything, but the different button doesn't appear when you roll over it. I'm wondering if there is a problem with the single images that I've made to replace the button in the 'over' state or the 'out' state. I've never tried something like this so I'm not sure how to do it.
I've posted the page on a free host just so you can see the code, etc.

thanks

http://halifaxark.50megs.com/problem.htm

(the buttons won't go anywhere because I didn't bother uploading those pages....)

tg
05-04-2002, 06:48 AM
this is a crap answer, but goto macromedias site and download the prerelease of fireworksmx.
the rollover will take you about 5 minutes to do, and fireworks writes all the javascript for you.
don't fret, fireworks imports photoshop images just fine, and you will still retain all of your layers.

Romulus
05-04-2002, 02:09 PM
that could probably be a solution to the problem I have, and I'll try that. But I was also looking to solve the problem myself so I don't have to depend on Macromedia every time I have a JavaScript problem. It's getting too easy with things like Dreamweaver, etc., you don't have to know HTML or JavaScript anymore. You just paste things where you want them to be, no need to know the code for a <table>. However, you might run into problems down the line if there's something that those things can't handle.

Thanks for the quick fix, and I'll let you know how it goes.
Maybe I'll use Macromedia to solve the problem and then just look at their code....although sometimes it can be a little junky.:)

thanks...

Romulus.