Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 1998-06-22
6
168 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

807 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