I want to embed a .wav file onto my front page. I made a page--front.tpl.php file and used the following code, which only shows a Real Player icon and doesn't play.

<embed src="../images/silent_night1.wav" width="100px" height="100px"></embed>

I tried using the object tag but it didn't even show the icon.

mark

Comments

mmarkym’s picture

	<embed src="../images/silent_night1.wav" width="100px" height="100px"></embed>
nevets’s picture

The src path (../images/silent_night1.wav) need to be relative to the site root (start with a '/').

mmarkym’s picture

The icon shows up so the path is correct. I did change it to include the forward slash but am still just getting the Quicktime icon.

mark

mmarkym’s picture

I just embeded the wav file and a sample new one into a page outside of Drupal and loaded it with no luck. Still just an icon with no behavior. It seems Drupal is not the cause so I guess this is a non-Drupal question about embeding .wav files.

mark