Thread: IMG and EMBED BGSOUND tags...
Results 1 to 13 of 13
08-04-2001, 12:43 AM #1
IMG and EMBED BGSOUND tags...
I hate to bother you but I am having trouble utilizing IMG, BGSOUND, and EMBED tags with files on my C:\ hardrive(Windows ME). When I use files off my Zip D:\ drive, it works fine, but when I attempt to copy files over to my C:\ drive, the HTML code does not work in the webpage.
I am trying to put gif images and embedded background sound on my webpage. The problem with keeping the files located from my Zip drive is that I'm the only one who can see or hear the images. People visiting my site from another computer cannot see or hear them. If you could be so kind to help out a web rookie, I would greatly appreciate it. Thank you.
08-04-2001, 03:40 AM #2
By the sound of it, you may be using absolute paths to your files.
If you could post some paths for me then I would be able to tell for sure.
Try using relative paths -
and keeping the image.gif in the same folder/directory as the html file.
Hope that helps.
08-04-2001, 03:37 PM #3
I obtained the html tags from different html tutorial sites. I then copied and pasted them on my page and then listed the SRC= location. How would I keep those html tags in the same folder/location as my gif and sound files?
I've used the tag you suggested that I use. Like I said, I'm pretty new at this, so in English, what is an absolute path? Thanks.
08-04-2001, 06:21 PM #4
No worries, m8.
Okay - Lets say you have a website called www.capricorn.com.
I link to your site by having a link looking like this -
<a href="http://www.capricorn.com">Go to Capricorn!</a>
But what if I wanted to link to one of your images instead, like a banner ad for instance? I would use -
<a href="http://www.capricorn.com><img src="http://www.capricorn.com/bannerad.gif"></a>
This would produce a banner on my page, with a link to your site. You see the http://www.capricorn.com/bannerad.gif Thats an absolute url. Because my webpage is on a different server, then I have to post the url like this.
However, lets look at your webpage. It is already in http://www.capricorn.com/ . So we don't need an absolute url, we just need a relative one. The advantage of this is that the links all work when you use the site offline on your harddrive.
So....if you had a link that said D:\image.gif. If your link just said
then it would work wherever the hell you put it. But if your links read
then as soon as you moved them off the zipdrive they would no longer work.
Does this make more sense? Be aware, I'm in the UK, its midnight on a saturday and I am pretty damn drunk.
Last edited by HTML; 09-10-2003 at 06:02 PM.
08-05-2001, 01:56 AM #5
Hehe,QuietDean, even drunk at least you do write/speak English, unlike many of us Colonials who understand English but write/speak American.
08-05-2001, 02:40 AM #6
Thank you but that didn't work either. I'm about to cry now.
08-05-2001, 04:41 AM #7
Still not sorking? Could you post some code here so we can have a look? Ta.
08-05-2001, 05:03 AM #8
Here are the tags I've tried to use:
<img src="C:\heart.gif" align=left><img src="C:heart.gif" align=right>
<embed src="C:\Track 9.wma" loop="true" autostart="true" width="300" height="150" CONTROLS="smallconsole">
Now, they only work on my end if I direct them from D:\ If I just use "Track 9.wma", it won't work period. The above C:\ does not work either.
08-05-2001, 05:26 AM #9
make a folder on your desktop, call it webdesign.
Save/Copy heart.gif to this folder.
Change the webpage so that the link reads
Put your webpage in the same folder and launch it from there and see what happens.
let us know how this works.
08-05-2001, 08:31 AM #10
Duh, er, didn't see that the first time. Capricorn, get rid of the space in the filename for the audio file, and put it in all small letters. If your server is a Unix server (hopefully, in my biased opinion), you can't use spaces, and the file names are CaSe SenSItive.
If the contents of your new folder are:
then you can use this code in your index.html file:
<img src="heart.gif" align=left><img src="heart.gif" align=right>
<embed src="track9.wma" loop="true" autostart="true" width="300" height="150" CONTROLS="smallconsole">
BTW, what file type is wma? What plugin does it use?
Dean, British ale is my favorite beverage. Not that even a couple of pints helps with my hopelessly American accent
Last edited by HTML; 09-10-2003 at 06:04 PM.
08-05-2001, 09:02 AM #11
I would also assume that these files are not in the same folder on your harddrive.
Placing everthing straight to the C:\ drive can be pretty sloppy I would suggest you make a folder in on your c drive called images and another called sounds
place your images in the images folder, and the sounds in the sounds folder
Unfortunately, with the code and files on your harddrive instead of on a server somewhere it makes it a little more difficult to investigate the problem.
08-05-2001, 11:25 AM #12
lol. Mistress, pop on over and I will buy you a drink...
08-05-2001, 04:53 PM #13
Keeping your file in the same order as you plan on having them organized on your server always makes the most sense. I actually have some internal redirects for other domains, and keep the subfolders in the same arrangement on my hd as on the server.
<sig>Good ale...I've resigned myself to having to make it ourselves. Just taking too long getting to it this summer and boycotting the lousy dark lager here. No tonic water, so its gin and soda. No lime, so its lemon. Okay, so Seattle definitely had advantages -- great coffee, great ale. </sigh>
So what is the wma format?
Dave, did you see that post at cj to the chile rellano recipe I used? I can dig it up if you didn't.