Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

sound on page won't play


  • Please log in to reply

#1
MR0624

MR0624

    Member

  • Member
  • PipPipPip
  • 365 posts
I'm trying to add some sound to a web page of mine so I entered the following html code:

<embed SRC="test.wav" HIDDEN=true AUTOSTART=true NAME=test>



The file is test.wav but for some reason it doesn't play in firefox or IE.

Thanks,
MR0624
  • 0

Advertisements


#2
sunny441

sunny441

    Member

  • Member
  • PipPipPip
  • 258 posts
Hi there!
here is the code you are looking for.. it should look like this.

<script language="Javascript">
if (navigator.userAgent.indexOf('MSIE') > -1)
{
    document.write('<bgsound src="filename.wav" loop="1">');
} else {
    document.write('<embed src="filename.wav" autostart=TRUE hidden=true loop="1">');
}
</script>


hope that works
:tazz:

cheers
  • 0

#3
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
first, let me explain what i'm trying to do . I'm trying to start a podcast but I needed to put the podcast on a page somewhere so i'm using some old web space. However, the code that you gave me still doesn't work. I made the proper edits (file name) and put it up but no luck.... I tried using a different hosting account that I have with a different server, and that doesn't work either. Thanks for trying.....

Edited by MR0624, 25 June 2005 - 08:27 AM.

  • 0

#4
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
update: I've tried three hosts now and neither work.....anyone?
  • 0

#5
Redwontdo

Redwontdo

    Member

  • Member
  • PipPip
  • 38 posts

update: I've tried three hosts now and neither work.....anyone?

View Post


<embed src="test.wav" autoplay=true">

In other words, put a " at the end of your statement before the last >

Edited by Redwontdo, 26 June 2005 - 03:29 AM.

  • 0

#6
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
Well, attached to this message is what I see on the web page.....I still don't hear sound but I get that image.

Edited by MR0624, 26 June 2005 - 08:03 AM.

  • 0

#7
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
Hmmm...it won't attatch....but it's this big picture of a piece of paper with a tear at the buttom corner and the quicktime symbol on the piece of paper. It just stays like that. I've edited the quicktime plug-in settings to read .wav files but it still doesn't work....
  • 0

#8
Space-Man

Space-Man

    Member

  • Member
  • PipPip
  • 97 posts
Try embedding an mp3 file see if that works.

Edited by Space-Man, 26 June 2005 - 01:29 PM.

  • 0

#9
sunny441

sunny441

    Member

  • Member
  • PipPipPip
  • 258 posts
try a midi file - cos i have done that before using the code that i posted earlier

cheers
  • 0

#10
Redwontdo

Redwontdo

    Member

  • Member
  • PipPip
  • 38 posts

Hmmm...it won't attatch....but it's this big picture of a piece of paper with a tear at the buttom corner and the quicktime symbol on the piece of paper. It just stays like that. I've edited the quicktime plug-in settings to read .wav files but it still doesn't work....

View Post



Should play as a quicktime. Change your file to an MP3 and try that?

Try this. Can you hear/view the file on this page?

test

Edited by Redwontdo, 26 June 2005 - 02:43 PM.

  • 0

Advertisements


#11
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
yeah...I can hear that...give me 10 mins to make a new file in mp3 and i'll post back with the results....
  • 0

#12
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
I edited the file and with mp3 it changed from the piece of paper to the quicktime symbol.......but no sound!!
  • 0

#13
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
is there any software I can use to edit mp3's to midi's?
  • 0

#14
Redwontdo

Redwontdo

    Member

  • Member
  • PipPip
  • 38 posts
What compression did you use when you created your MP3?


Here are some conversion softwares but I have never tried any of them. I either us MP3 or wav files.

link
  • 0

#15
MR0624

MR0624

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 365 posts
Tell me if you guys hear sound. Go to my web page
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP