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 10:57 PM.

story-0
Topdon ONE vs. Artidiag 800 BT2: Which is the Diagnostic Tablet For You?

Slideshow: We take a close look at the ONE and Artidiag 800BT2 diagnostic tools from Topdon and the reasons to buy one over the other.

By Pouria Savadkouei | 2026-05-28 11:05:11


VIEW MORE
story-1
Gas Monkey Built a 6-Wheel Ferrari Testarossa With a Corvette LT4 Engine

Slideshow: The controversial Ferrari F6 swaps its original flat-12 for a Corvette Z06-derived LT4 V8 and sends power to four rear wheels through a custom-built drivetrain.

By Verdad Gallardo | 2026-05-26 18:23:54


VIEW MORE
story-2
7 Most Reliable High-Performance Engines GM Has Ever Built

Slideshow:These GM engines didn't just make huge power, they survived abuse, boost, track days, and six-digit mileage with a reputation for refusing to quit.

By Verdad Gallardo | 2026-05-21 16:45:27


VIEW MORE
story-3
Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

Slideshow: This heavily modified 1971 Camaro mixes classic muscle car styling with a fifth-generation Camaro interior and modern LS3 power.

By Verdad Gallardo | 2026-05-12 18:06:42


VIEW MORE
story-4
6 Common C5 Corvette Failures and What's Involved In Repairing Them

Slideshow: From wobbling harmonic balancers to failed EBCMs, these are the issues that define long-term C5 ownership and what repairs typically involve.

By Pouria Savadkouei | 2026-05-07 18:44:57


VIEW MORE
story-5
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-6
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-7
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-8
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-9
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