Solved

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

Posted on 1998-06-22
6
170 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
[X]
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
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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

734 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