Results 1 to 6 of 6

Thread: Image Not Showing

  1. #1
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Not Showing

    http://www.dynamicdrive.com/dynamicindex4/butterfly.htm
    Hi,
    I have got this script working for me but (i know this may seem silly) but I have no idea how to get the picture working. I just get the question mark box. I have uploaded the image to my server, I just don't know where to put the URL for the script to see it so it shows on my page. Could someone please show me where it should go and would it be the same place for all the other floating or moving things.
    Thank u for helping me it is much appreciated.
    Karen

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here's where you put the url's to your images:

    var floatimages=new Array();
    floatimages[0]='butterfly2.gif';
    floatimages[1]='butterfly2.gif';


    If you have more add to it:

    var floatimages=new Array();
    floatimages[0]='butterfly2.gif';
    floatimages[1]='butterfly2.gif';
    floatimages[2]='some.gif';

    If the images were not uploaded to the same directory as the page with the script on it, use the directory name:

    var floatimages=new Array();
    floatimages[0]='images/butterfly2.gif';
    floatimages[1]='images/butterfly2.gif';

    Make sure your images and paths, if any, are spelled exactly the same in the code as their actual filenames and paths. Capital letters and lowercase ones are considered as different letters on the web. Ex:

    .GIF

    is different than:

    .gif
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank u. But i seem to be having trouble where to place the url in that area. Do you mind helping me again.
    Example
    var floatimages=new Array();
    floatimages[0]='butterfly2.gif';www.home.iinet.net.au/WebGraphics/butterfly2.gif
    floatimages[1]='butterfly2.gif';www.home.iinet.net.au/WebGraphics/butterfly2.gif
    Is it here or should I add image source or something.
    Thank u

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, aside from the fact that there is no image at that exact address at the moment, if there were, this is one valid way to write it in the code:
    Code:
    var floatimages=new Array();
    floatimages[0]='http://www.home.iinet.net.au/WebGraphics/butterfly2.gif';
    floatimages[1]='http://www.home.iinet.net.au/WebGraphics/butterfly2.gif';
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi
    I didn't put my real url there I didn't think you would check. Here is where i put it.
    http://www.reelgirlsfish.iinet.net.a...butterfly2.gif
    I do appreciate this, I don't often get replies with my mac user group.

    Karen

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, the principle is the same:
    Code:
    var floatimages=new Array();
    floatimages[0]='http://www.reelgirlsfish.iinet.net.au/WebGraphics/butterfly2.gif';
    floatimages[1]='http://www.reelgirlsfish.iinet.net.au/WebGraphics/butterfly2.gif';
    In case you were still wondering.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •