Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Play .MID file & display .JPG automatically while opening .HTML

Posted on 1998-06-22
6
Medium Priority
?
175 Views
Last Modified: 2010-04-09
I wanted to send a html file to my friend by email on his birthday:

1. The file may contain a .JPG picture
2. The file also may contain a .MID sound file
3. Play .MID while he open the file

Would you please teach me how to make such file easily?
What tools should I used (better to use shareware or Office 97)?

Or, do you have any comment on greeting my friend's birthday on the net?

Thank you.
0
Comment
Question by:st
6 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1844332
use Netscape Communicator or Microsoft Outlook Express (if your friend uses a similar email program). There, you can easily include a JPG and a MID in your mails - just use drag&drop.
Please leave me a comment if your want more on this and please do include the email program of your choice.
0
 
LVL 1

Author Comment

by:st
ID: 1844333
How can play the .mid file automatically?
Moreover, does it work if he don't ms word as email editor?
Thanks.
0
 

Expert Comment

by:auggy
ID: 1844334
I presume your friend is using a browser to open the HTML file. To play the midi file automatically after opening the HTML file, type in <bgsound src="file_name.mid" loop="infinite" autostart=true> in your HTML source. autostart=true is the part that determines the automatically playing of the midi file.

I might have misunderstood your question.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:st
ID: 1844337
Auggy, thanks.
Martike, I prefere your method that send the URL of my ISP server to my friend. However, if as you said that "bgsound" code not work with all browsers, what should I do?
0
 
LVL 3

Accepted Solution

by:
shalbe earned 200 total points
ID: 1844338
st,

I agree with Martike that your best bet would be to send an electronic Greeting Card from a Greetings website if you are unfamiliar with HTML.

Below is a Greeting Card Site that I've bookmarked that I know has songs that can be embedded.  Blue Mountain Arts. One of my favorites and it's free.

     http://www.bluemountain.com/index.html).

This URL lists hundreds of Greetings sites (Not all free and not many with music).

     http://www.geocities.com/RodeoDrive/1465/greetlst.htm

If you must make your own HTML page, you can insert an image with the following code that when clicked will play your midi file.

<HTML>
<HEAD>
<TITLE>Put Page Title Here</TITLE>
</HEAD>
<BODY>

(Text can go here)

<A HREF="Your_Image_Path_and_Name.jpg"><IMG SRC="stripefsh.jpg" HSPACE=10 VSPACE=15 BORDER=3 HEIGHT=100 WIDTH=100></A>

(Hspace, Vspace, border,height and width optional.
(More text can go here)

</BODY>
</HTML>

This will not play the midi until the picture is clicked and then only if your boyfriend has a browser with midi capabilities set up. To embed the midi file to play automatically is even more browser dependant (One command for Netscape and another for MSIE) .

This code is supposed to work with either browser.

    <EMBED src="wings.mid" autostart=true volume=60% height=15 width=144 bgcolor="#000000" controls=smallconsole><bgsound src="wings.mid" loop=infinite></center><p>

In all of these commands the volume, height, width, Hspace, Vspace etc are optional but I show them for your info.

If you want to learn more about HTML, I would suggets the following URL's for beginners HTML guides.

     http://www.mvd.com/webguide/

     http://www.mvd.com/webguide/links1.shtml

Once your page is written, uploading it onto your ISP's server is the best way to go.

Good Luck !

Steve

0
 
LVL 3

Expert Comment

by:shalbe
ID: 1844340
st,

Oops, goofed. It should read:

     <A HREF="Your_Midi.mid"><IMG SRC="Your_JPG.jpg" HSPACE=10 VSPACE=15 BORDER=3 HEIGHT=500 WIDTH=414></A></CENTER>

Steve


0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question