PDA

View Full Version : Image Not Showing



scallywag
06-21-2005, 11:34 PM
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 :)

jscheuer1
06-22-2005, 06:22 AM
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

scallywag
06-22-2005, 08:17 AM
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

jscheuer1
06-22-2005, 08:43 AM
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:
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';

scallywag
06-22-2005, 09:02 AM
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.au/WebGraphics/butterfly2.gif
I do appreciate this, I don't often get replies with my mac user group.

Karen

jscheuer1
06-22-2005, 09:34 AM
Well, the principle is the same:
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.