|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
woooo javascript heehee 1337
hi everyone. i was wondering if this problem could be fixed with javascript.
see i am using this snippet : Quote:
to play track1.mp3. But say i have 3 tracks track1.mp3 track2.mp3 track3.mp3 would it be possible so that when the track 3 is clicked it plays that track 3? and vice versa? so it plays the track clicked. something like <object height="42" width="105" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="FileName" value=variable1 /> track2.mp3 onclick=variable1 or something i dunno i dont do javascript. thanks in advance for taking time to answer my quiery mike |
|
#2
|
|||
|
|||
|
oh dear, maybe people don't think i am being serious..
serious question! |
|
#3
|
||||
|
||||
|
ok, mike, we know its serious
![]() you can use the following example Code:
function play(mp3) {
newWindow = window.open("", "", "width=230, height=200, location=no, directories=no, resizable=no, copyhistory=no, statusbar=no, toolbar=no, menubar=no, scrollbars=no, top=50, left=50");
newWindow.document.write("<html><body>you're listening<br>"+ mp3 +"<object height='42' width='105' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95'><param name='FileName' value='"+ mp3 +".mp3' /></body></html>");
}
and apply with the onClick event Code:
onClick="play('track01');"
onClick="play('track02');"
onClick="play('track03');"
ez |
|
#4
|
|||
|
|||
|
thanks ezenaide! i am going to give it a wirl right now
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > woooo javascript heehee 1337 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|