Solved

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

Posted on 1998-06-22
6
165 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…

895 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

17 Experts available now in Live!

Get 1:1 Help Now