Multimedia Exchange Videos | Sound Clips | Photos | Photoshop

HTML codes

Thread Tools
 
Search this Thread
 
Old Sep 19, 2004 | 03:55 PM
  #1  
LS1Adam's Avatar
Thread Starter
TECH Apprentice
 
Joined: Jan 2004
Posts: 353
Likes: 0
From: san clemente
Default HTML codes

Anyone know html codes for posting music up to a website? or maybe where I could find codes for a list of music options?


Thanks!
Reply
Old Sep 19, 2004 | 07:05 PM
  #2  
onehardmaro's Avatar
TECH Enthusiast
 
Joined: Jan 2003
Posts: 634
Likes: 0
From: VA
Default

<bgsound src="url" loop="#" or "infinite"/> The you can loop a number of times by putting or number in or continually play it with infinite.
Reply
Old Sep 19, 2004 | 08:00 PM
  #3  
lapp6th's Avatar
Teching In
 
Joined: Aug 2004
Posts: 5
Likes: 0
From: Croatia/Germany
Default

midi or wave only in that case
Reply
Old Sep 19, 2004 | 08:33 PM
  #4  
XxNaSDaQxX's Avatar
TECH Enthusiast
iTrader: (5)
 
Joined: Oct 2002
Posts: 708
Likes: 0
From: Houston
Default

Firstly, Java and Javascript are two seperate things.

You don't need either to allow music to be played. The best method, and most cross-browser, is just to call the sounds with a link....

Code:
<a href="soundFile1.mp3" title="Click to hear">sound file 1 </a>
You can, if you like, rely on a plug-in to play the sounds within the page, and the best way is to include it with the link.
This piece of code relies on Window Media Player 8,9 or 10

Code:
<object id="soundPlayer" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="0px" height="0px" type="application/x-oleobject" style="visibility:hidden">
<param name="URL" value="">
<param name="autoStart" value="true">
<param name="playCount" value="0">
<param name="volume" value="80">
<param name="rate" value="1">
<param name="uiMode" value="none">
</object>

Notice how there's no initial URL set for the player? This just embeds WMP into the page.
You can the use a function like this

Code:
function changeSound(newSound) {
document.getElementById("soundPlayer").url=newSound;}
To automatically play the sound using WMP
I have used this type of link on a friends site at http://intelligentaudio.net/audio , which plays sounds onmouseover with WMP or lets others hear the sound through the link.

Code:
<a href="soundFolder/soundFile1.mp3" title="Rollover or Click to Play" onmouseover="changeSound(this.href)">soundFile1.mp3</a>
There is probably a method to use with Real as well, but the script to work out which plugin is installed on the clients computer is complicated. I rely on WMP as it has alot more functions than others, and is more widespread. As long as you use a plain HTML link as well then all clients are kept happy

Anything else you would need an external player, i like to use flash to play my music, with or without a visual player.

Good luck......

Last edited by XxNaSDaQxX; Sep 19, 2004 at 08:39 PM.
Reply
Old Sep 22, 2004 | 04:54 AM
  #5  
riddler's Avatar
TECH Enthusiast
Veteran: Air Force
20 Year Member
Photogenic
iTrader: (4)
 
Joined: Apr 2002
Posts: 639
Likes: 0
From: The Eastern Shore
Default

Originally Posted by XxNaSDaQxX
Firstly, Java and Javascript are two seperate things.

You don't need either to allow music to be played. The best method, and most cross-browser, is just to call the sounds with a link....

Code:
<a href="soundFile1.mp3" title="Click to hear">sound file 1 </a>
You can, if you like, rely on a plug-in to play the sounds within the page, and the best way is to include it with the link.
This piece of code relies on Window Media Player 8,9 or 10

Code:
<object id="soundPlayer" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="0px" height="0px" type="application/x-oleobject" style="visibility:hidden">
<param name="URL" value="">
<param name="autoStart" value="true">
<param name="playCount" value="0">
<param name="volume" value="80">
<param name="rate" value="1">
<param name="uiMode" value="none">
</object>

Notice how there's no initial URL set for the player? This just embeds WMP into the page.
You can the use a function like this

Code:
function changeSound(newSound) {
document.getElementById("soundPlayer").url=newSound;}
To automatically play the sound using WMP
I have used this type of link on a friends site at http://intelligentaudio.net/audio , which plays sounds onmouseover with WMP or lets others hear the sound through the link.

Code:
<a href="soundFolder/soundFile1.mp3" title="Rollover or Click to Play" onmouseover="changeSound(this.href)">soundFile1.mp3</a>
There is probably a method to use with Real as well, but the script to work out which plugin is installed on the clients computer is complicated. I rely on WMP as it has alot more functions than others, and is more widespread. As long as you use a plain HTML link as well then all clients are kept happy

Anything else you would need an external player, i like to use flash to play my music, with or without a visual player.

Good luck......
Sweet Write Up
Reply




All times are GMT -5. The time now is 03:39 AM.

story-0
Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

Slideshow: A modern Camaro transformed into a retro icon, this limited-run "Bandit" build blends nostalgia with brute force in a way few revivals manage.

By Verdad Gallardo | 2026-04-21 13:57:02


VIEW MORE
story-1
Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

Slideshow: Cadillac didn't just crash the high-performance luxury vehicle party, it showed up loud, supercharged, and occasionally a little unhinged...

By Pouria Savadkouei | 2026-04-16 10:05:15


VIEW MORE
story-2
Top 10 Most Powerful Chevy Trucks Ever Made!

Slideshow: Top ten most powerful Chevy trucks ever made

By | 2026-03-25 09:22:26


VIEW MORE
story-3
Hennessey's New Supercharged Silverado ZR2 Has 700 HP

Slideshow: Hennessey has turned the Silverado ZR2 into a 700-hp off-road monster with supercharged V8 power and a limited production run.

By Verdad Gallardo | 2026-03-24 18:57:52


VIEW MORE
story-4
Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

Slideshow: A one-off sports car that looks like a vintage Italian exotic-but hides a C6 Corvette underneath-just sold for the price of a new mid-engine Corvette.

By Verdad Gallardo | 2026-03-23 18:53:41


VIEW MORE
story-5
Awesome K5 Blazer Restomod Comes With C7 Corvette Power

Slideshow: A heavily reworked 1972 K5 Blazer swaps its off-road roots for a low-slung street-focused build with modern V8 power.

By Verdad Gallardo | 2026-03-09 18:08:45


VIEW MORE
story-6
10 Camaros You Should Never Buy

Slideshow: There are thousands of used Camaros on the market but we think you should avoid these 10

By | 2026-02-17 17:09:30


VIEW MORE
story-7
10 LS Engine Myths That Refuse to Die

Slideshows: Which one of these myths do you believe?

By Verdad Gallardo | 2026-01-28 18:10:11


VIEW MORE
story-8
Five Reasons the Camaro Was the Most Pivotal Player in the Pony Car Wars 2.0

The world was a better place when it was still around.

By Brett Foote | 2026-01-23 09:20:37


VIEW MORE
story-9
10 Reasons the LS7 Is GM's Most Extreme Naturally Aspirated V8 Engine Ever

Slideshow: The 7.0-liter LS7 was designed for absolute cutting-edge performance.

By Verdad Gallardo | 2026-01-07 18:36:00


VIEW MORE