37 users online (1 members and 36 guests)  


  Results 1 to 13 of 13

Related

  1. HTML EMBED tag Problem    Forum: HTML Forum
    Replies: 2
  2. Autostart with embed object    Forum: HTML Forum
    Replies: 2
  3. How do I Embed MPEG's??    Forum: HTML Forum
    Replies: 3
  4. HELP!!! - embed problem!    Forum: HTML Forum
    Replies: 7
  5. Embed from C: drive?    Forum: HTML Forum
    Replies: 3
  1. #1
    capricornD26's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2001
    Posts
    4

    Angry 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.


  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Post

    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 -

    <img src="image.gif">

    and keeping the image.gif in the same folder/directory as the html file.

    Hope that helps.

    ------------------
    QuietDean-

  3. #3
    capricornD26's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2001
    Posts
    4

    Question

    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.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Cool

    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

    <img src="image.gif">

    then it would work wherever the hell you put it. But if your links read

    <img src="D:\image.gif">

    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.

    ------------------
    QuietDean-
    Last edited by HTML; 09-10-2003 at 06:02 PM.

  5. #5
    webmistress's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2001
    Posts
    48

    Cool

    Hehe,QuietDean, even drunk at least you do write/speak English, unlike many of us Colonials who understand English but write/speak American.

    ------------------
    webmistress

  6. #6
    capricornD26's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2001
    Posts
    4

    Red face

    Quiet Dean,

    Thank you but that didn't work either. I'm about to cry now.

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Post

    lol Mistress.

    Still not sorking? Could you post some code here so we can have a look? Ta.

    ------------------
    QuietDean-

  8. #8
    capricornD26's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2001
    Posts
    4

    Post

    Here are the tags I've tried to use:

    <img src="C:\heart.gif" align=left><img src="C:heart.gif" align=right>

    <p align="center">
    <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.

  9. #9
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Post

    Okay.

    make a folder on your desktop, call it webdesign.

    Save/Copy heart.gif to this folder.

    Change the webpage so that the link reads

    <img src="heart.gif">

    Put your webpage in the same folder and launch it from there and see what happens.

    let us know how this works.

    ------------------
    QuietDean-

  10. #10
    webmistress's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2001
    Posts
    48

    Post

    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:
    index.html
    heart.gif
    track9.wma

    then you can use this code in your index.html file:

    <img src="heart.gif" align=left><img src="heart.gif" align=right>

    <p align="center">
    <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



    ------------------
    webmistress
    Last edited by HTML; 09-10-2003 at 06:04 PM.

  11. #11
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Post

    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

    C:\images\
    C:\sounds\

    place your images in the images folder, and the sounds in the sounds folder
    C:\images\file.gif
    C:\sounds\file.wma

    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.

    Dave

  12. #12
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Smile

    lol. Mistress, pop on over and I will buy you a drink...

    ------------------
    QuietDean-

  13. #13
    webmistress's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2001
    Posts
    48

    Wink

    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.



    ------------------
    webmistress



Tags for this Thread