1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Bad syntax help needed

Discussion in 'BBS Hangout' started by Jrivas82, Apr 18, 2005.

  1. Jrivas82

    Jrivas82 Member

    Joined:
    Jul 28, 2003
    Messages:
    143
    Likes Received:
    0
    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
     
  2. DrLudicrous

    DrLudicrous Member

    Joined:
    May 9, 2002
    Messages:
    3,936
    Likes Received:
    203
    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.
     
  3. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    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.
     
  4. Jrivas82

    Jrivas82 Member

    Joined:
    Jul 28, 2003
    Messages:
    143
    Likes Received:
    0
    Thanks for the help guys.
     
  5. No Worries

    No Worries Member

    Joined:
    Jun 30, 1999
    Messages:
    32,752
    Likes Received:
    20,509
    Firefox also has a JavaScript debugger plugin called Venkman, which does not suck.
     
  6. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    Thanks for what? Did it help? :D

    I mean, update us, brother... we want to know how you decided to go... :confused:
     
  7. BrianKagy

    BrianKagy Member

    Joined:
    Feb 14, 1999
    Messages:
    4,106
    Likes Received:
    6
    Help needed with "bad syntax" error

    Problem solved. You are welcome.
     
  8. Invisible Fan

    Invisible Fan Member

    Joined:
    Dec 5, 2001
    Messages:
    45,954
    Likes Received:
    28,046
    What did the problem solve?
     
  9. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    What Would JRivas Do?
     
  10. BrianKagy

    BrianKagy Member

    Joined:
    Feb 14, 1999
    Messages:
    4,106
    Likes Received:
    6
    MY ASS!!!!!!!!!!

    [​IMG]
     
  11. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    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"?) :confused:
    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. :)
     
  12. BrianKagy

    BrianKagy Member

    Joined:
    Feb 14, 1999
    Messages:
    4,106
    Likes Received:
    6
    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.
     
  13. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    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" ;) .
     

Share This Page