Wondering how to tag a .wav with a <a href=blah.com>

  • Blackdeath
  • Novice
  • Novice
  • User avatar
  • Posts: 18
  • Loc: Wisconsin

Post 3+ Months Ago

Wondering how to tag a .wav file(sound effect> with a
a href=blah.com>blah</a>

Exacly what the topic says, been stumped on this one for about a day now.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

I'm not quite sure exactly what you mean...

Are you looking to produce a link that will download a wav?
Are you looking to produce a link that will play a wav?
  • Blackdeath
  • Novice
  • Novice
  • User avatar
  • Posts: 18
  • Loc: Wisconsin

Post 3+ Months Ago

Sorry for being not clear, what I meant to say was how to produce a link that will play a .wav file when clicked on, not download it.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Code: [ Select ]
<a href="http://www.yourdomain.com/yourwavfile.wav">Play this music</a>
  • Blackdeath
  • Novice
  • Novice
  • User avatar
  • Posts: 18
  • Loc: Wisconsin

Post 3+ Months Ago

my bad making myself look stupid, another rephrase,

How do I make a link that will take the user to another webpage AND play the .wav I designate it.

so how woulda I make the link
Code: [ Select ]

<a href=http://mydomain/blackdeath.com/images/wildcat>Kat</a>
  1. <a href=http://mydomain/blackdeath.com/images/wildcat>Kat</a>


Play this sound effect when clicked on
Code: [ Select ]
http://mydomain/blackdeath.com/roar.wav
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Then you need to embed the wav file in the new page. (I take it your "wildcat" directory holds some kind of HTML file to display)? Just embed the wav file in that.
  • Blackdeath
  • Novice
  • Novice
  • User avatar
  • Posts: 18
  • Loc: Wisconsin

Post 3+ Months Ago

Ok thank you for the help ANTO/TW , I will do what you last posted
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

ok...
i see your problem..
this is the code i would use.
Code: [ Select ]
<embed src="NAMEOFSONG.WAV" autostart=false loop=false height=45 width=350 controls="smallconsole">

this will make a little box 45x350, it will look like a windows media player box, with start, pause, rewind ect. depending on the users version of windows.
it will look like this
<embed src="music/goingunder.au" autostart=false loop=false height=45 width=350 controls="smallconsole">
(i dont have any music atm :P)
  • stinger
  • Graduate
  • Graduate
  • stinger
  • Posts: 157
  • Loc: San Jose, CA

Post 3+ Months Ago

ARe you looking for something that will be dynamic? If so. . I would use a javascript function that will set the embed src. This will allow you to go to your default copyright page, and play a sample of music. This page will be able to handle multiple files, only playing 1 at a time.

You will do this by sending a javascript variable within the html link.

so. . .

<a href=www.yourdomain.com/musicfiles/play.html?song=whatyouhere.wav>Click to play</a>

this will send the variable of whatyouhere.wav to your html page.

THEN. . .

you will use this variable to define a embed src and later use onLoad() to play the music when it loads.

-you have been stung-

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: ScottG and 70 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.