Broken img link ?

Discussion in 'JavaScript' started by Jaybirddesigns, May 29, 2008.

  1. Jaybirddesigns New Member

    I have a script where i let users upload to a specific dir, then a java script on thier gallery page to display images that they uploaded. Thier are 10 images. pic1, pic2, pic3 and so on. so when they upload and rename pic1 to replace pic1.

    My question is say they only upload 8 images this leaves me with 2 broken links with that stupid box with a red x. How do i remove it?

    Also for purposes on thier upload page, how can i replace the broken link img with my own custom one.

    Thanks,

    Jason :cool:
  2. ishkey Mod - Designer

    If...else Statement

    If you want to execute some code if a condition is true and another code if the condition is not true, use the if....else statement.

    Syntax
    if (condition){code to be executed if condition is true}else{code to be executed if condition is not true}
  3. Jaybirddesigns New Member

    Thanks ISHKEY i will research this some more.
  4. ishkey Mod - Designer

    What does this site look like you keep adding all these things to?
  5. Jaybirddesigns New Member

    This is the index link. i still have alot to go, but you get the idea.
    http://jaybirdfolio.com/kathyweb/index.htm

    I think i'm going to have white jpgs where the place holders are and then when she uploads a pic it will just replace the place holder. Each div has a java script viewer on it linked to the thumbnial and regular size. The effect is this

    http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    Her upload link would be place on the bottom of Gallery page.

    I started working on a script, but she would have to delete first the move to a different page to upload. My delete script:

    http://www.jaybirdfolio.com/delete_folder_contents.php
  6. ishkey Mod - Designer

    Wow the site looks good, but the under lying code from that conversion web site is too much for me. How do you keep from going crazy reading it?
  7. Jaybirddesigns New Member

    Dude i know thats why i was asking shuan if he could modify it to make an external sheet. But as soon as i can figure out z index i'm going to start creating my own css styles and divs