JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old June 24th, 2005, 12:51 PM
mike_l mike_l is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 15 mike_l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 9 sec
Reputation Power: 0
woooo javascript heehee 1337

hi everyone. i was wondering if this problem could be fixed with javascript.

see i am using this snippet :

Quote:
<object height="42" width="105"
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="track1.mp3" />


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

Reply With Quote
  #2  
Old June 27th, 2005, 11:32 AM
mike_l mike_l is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 15 mike_l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 9 sec
Reputation Power: 0
oh dear, maybe people don't think i am being serious..


serious question!

Reply With Quote
  #3  
Old June 27th, 2005, 02:00 PM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
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

Reply With Quote
  #4  
Old June 28th, 2005, 02:32 PM
mike_l mike_l is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 15 mike_l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 9 sec
Reputation Power: 0
thanks ezenaide! i am going to give it a wirl right now

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > woooo javascript heehee 1337


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway