473,797 Members | 3,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Controlling / Playing a music file

Death Slaught
1,137 Top Contributor
i need a music player on my site ive tried the embed tag but i cant ever get the music to play also i would like to have script that lets my users download a file but i know nothing about downloading script so im not asking for a script but help learning how to make one.

Thanks, Death Slaught
Aug 8 '07 #1
11 2178
pbmods
5,821 Recognized Expert Expert
Changed thread title to better describe the problem (did you know that threads whose titles contain three words or less actually get FEWER responses?).
Aug 8 '07 #2
johnhjohn
43 New Member
Here is an example of using the <embed> tag.
Expand|Select|Wrap|Line Numbers
  1. <embed src="your music file" autostart="false"></embed>
  2.  
You could also have music playing in the background:
Expand|Select|Wrap|Line Numbers
  1. <bgsound src="your music file" loop="3">
  2.  
Aug 8 '07 #3
Death Slaught
1,137 Top Contributor
Here is an example of using the <embed> tag.
Expand|Select|Wrap|Line Numbers
  1. <embed src="your music file" autostart="false"></embed>
  2.  
You could also have music playing in the background:
Expand|Select|Wrap|Line Numbers
  1. <bgsound src="your music file" loop="3">
  2.  
thanks again it works perfectly as usual but do you know how to make it so they can download music or a file with music in it?
Aug 8 '07 #4
johnhjohn
43 New Member
You could place the music files in a compressed file. All you would have to is link to the file:

Expand|Select|Wrap|Line Numbers
  1. <a href="yourmusicfiles.zip">Music Files</a>
  2.  
Aug 8 '07 #5
Death Slaught
1,137 Top Contributor
You could place the music files in a compressed file. All you would have to is link to the file:

Expand|Select|Wrap|Line Numbers
  1. <a href="yourmusicfiles.zip">Music Files</a>
  2.  
thanks again man your awesome.
Aug 8 '07 #6
johnhjohn
43 New Member
No problem. I'm glad I could help.

In case you don't know:
To put files into a zip file, select all of your music files and right click them. Hover over "send to" and select Compressed (zipped) Folder
Aug 8 '07 #7
Death Slaught
1,137 Top Contributor
No problem. I'm glad I could help.

In case you don't know:
To put files into a zip file, select all of your music files and right click them. Hover over "send to" and select Compressed (zipped) Folder
yea i know i use winzip alot because every thing i do goes on a usb flash drive 4gb lol if i lost it i would be mortified.
Aug 8 '07 #8
johnhjohn
43 New Member
Lol yeah i was just making sure.
Aug 8 '07 #9
Death Slaught
1,137 Top Contributor
so lol how do i make this work?
Expand|Select|Wrap|Line Numbers
  1. 1 <html>
  2. 2 <form>
  3. 3 <input type="button" name=link value="link" onclick="<a href="http://thescripts.com">
  4. 4 </form>
  5. 5 </html>
Aug 9 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2497
by: Shelly | last post by:
I have a list of file descriptions in a list box that is filled via a php mysql select. I know the name of the file that is described by the file that is select from that list box. It is an audio file. I have a "Play" button. I know how to get to a section of code when the user clicks that button. Question 1: What do I have to do to make it play on the the user's machine when he clicks the "Play" button. Question 2: When he...
12
16147
by: Marian Aldenhövel | last post by:
Hi, I am trying to make pygame play music on windows. This simple program: import pygame,time pygame.init() print "Mixer settings", pygame.mixer.get_init() print "Mixer channels", pygame.mixer.get_num_channels() pygame.mixer.music.set_volume(1.0) pygame.mixer.music.load('file1.mp3)
4
2413
by: Sumaira Ahmad | last post by:
Hi, Is there any way of playing songs and downloading songs from a server onto a client machine. I want to develop an application such as a music portal which allows clients to play songs that reside on a Web Server. So does the web server need to send the song as an attachment to the ASP.NET Web application or does it do streaming?? And how is it achieved?? Please any ideas or any hints will be highly appreciated.
5
1950
by: Tom W | last post by:
Ok, hi evryon now I swear I put this post up yesterday but I cant find it anywhere so ill put it up again So I'm making a program to play music but the code ive got for the open dialog thing isn't working. This is what iv'e go \\\\\\\ Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOpen.Clic Dim OpenFileDialog( Dim openFile As New System.Windows.Forms.OpenFileDialo openFile.DefaultExt =...
1
1501
by: Tom W | last post by:
hi I've found some code for playing sounds and it kinda works. This is what I have \\\\\Public Class SoundClas Declare Auto Function PlaySound Lib "winmm.dll" (ByVal name As String, ByVal hmod As Integer, ByVal flags As Integer) As Intege ' name specifies the sound file when the SND_FILENAME flag is se ' hmod specifies an executable file handl ' hmod must be Nothing if the SND_RESOURCE flag is not se ' flags specifies which flags are se...
3
2375
by: Tommy DN | last post by:
I've made a program that displays the track that's playing on a (internet)radiostation. The name of the "now playing" track comes from the radiostation's website ( from the statusbar using the Internet Explorer object model ). Now, I want the name of the track in the person's nickname from MSN Messenger ( the "now playing" info that actually comes from the Windows Media Player Music Plugin ). Does anybody know how to do that ( in VB.Net...
4
8049
by: Jeffrey Barish | last post by:
Is there a way to interact with Windows Media Player from Python? I would like to be able to do things like tell WMP to play a given sound file or to ask WMP for metadata about a sound file. -- Jeffrey Barish
14
4019
by: gnarl | last post by:
Hello all, I'm developing a site in PHP4 for a music artist, who wants music to play across all their pages. I have loaded a simple flash applet to play the music, but every time the visitor to the site moves to a different page the music starts again. The artist would like the music to play continuously. I can only think of three possible ways to solve this, and I am not happy with any of them.
2
1514
by: sumaabey | last post by:
Thanks in advance. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.