Solved

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

Posted on 1998-06-22
6
164 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now