I created an image map for a website i am doing in Imageready. When I view it in the browser at the lower left hand corner it says it has an error in the syntax. The error was created in Imageready. Does anyone know how I could fix this? Here is the site http://www.josuerivas.com thank you
The error comes from this line having an extra comma take it out and it should work. new Array('index_01', 'images/index_01-ImageMap_03_ove-27.gif'), ); But you should really change the way it works, as it is every time a user moves their mouse over an option it reloads the entire image. The header graphic should be split into it's own seperate file with each button as it's own file also, so the header is never reloaded and each button only switches as it's needed.
FireFox is the best browser to help you out with your JavaScript. It has a built-in JavaScript console, just like the old Netscape (R.I.P.), that allows you to see where the error is. Screw IE for this type of web developing thing. Here is a screen capture of my FireFox JavaScript Console reporting the error. DrLudicrous was right. (make sure you see the picture in 100% view) I don't know where you went wrong, but you may have copied the ImageReady Slices code with BINARY instead of ASCII. I think you may have taken the code and probably tried to take something out and forgot what DrLudicrous pointed out. Make sure you don't BREAK your JavaScript lines with a carriage return or line feed. Dude, that is certainly A LOT of code for just one image map. Are you sure you don't want to do just "rollover" images with the pictures alone? I say do it without ImageMaps, since all you're doing is changing the effect. You can achieve this even without "rollovers". Here is a good tutorial to change your effects in ImageReady. Several things I learned the HARD WAY with ImageReady (please, no double meaning): 1. Always name your slices 2. Use Guides to separate your images on the PSD, then choose "create slices from guides". You can hide the guides to show the slices later. 3. ALWAYS make sure you're in DEFAULT state before working on a separate slice. 4. ALWAYS save the file before continuing. Damn you, low memory... Toodles. Let us know how you're doing with your HTML and your business... Happy HTML'ing.
I don't get it. BTW, Brian, your nickname on this BBS reminds me of the Spanish subjunctive conjugation form of the verb "to poop", which is "cagar", and sometimes it is funny to me when I read it: "It is possible that Brian poops." -> "Es posible que Brian cague." Cague ~ sounds like ~ Kagy (is it "ka-ghi" or is it "ca-gee"?) There fore, Brian poops sounds like how I would read your handle in Spanish. Sorry about that. Just had to let you know my theory.
It's funny, all this time I thought that the natives in Mexico called me "Mr Poop" because I have a lucrative side career muling illegal drugs over the border by concealing balloons in my rectum. Come to find out, it was just because they couldn't pronounce my name! Ah ha ha ha ha HA.
SHould be: "jajajajajajaja" as we would read laughing in Spanish. I don't think Brian-Full-Of-Grace would be a good nickname in this BBS. Stick with "Kagy" .