Community

embeding a .wav file onto the front page

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

the embed code

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

The src path

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

No luck

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

Not Drupal

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

nobody click here