1. Do an IFRAME, iframe src: music.htm
If you don't know how to make i frames, read this: IframesBasics
2. Make new htm doc.
Write in it this code in <head>:
| <bgsound id="PlayMusic"> <script type="text/javascript"> <!-- PlayMusic.src="music.mp3"; function OnOff() { if (PlayMusic.src=="") { PlayMusic.src="music.mp3"; OnOffButton.value="Stop"; } else { PlayMusic.src=""; OnOffButton.value="Play"; } } // --> </script> |
replace the file name in "music.mp3". its not must be mp3, its can be MID or WAV, but the best is MP3 or MID.
now, in the <body> but this:
| <input type="button" name="OnOffButton" value="Stop" onClick="OnOff()"> |
and save it as "music.html
the html shod look loke this:
| <html> <head> <bgsound id="PlayMusic"> <script type="text/javascript"> <!-- PlayMusic.src="music.mp3"; function OnOff() { if (PlayMusic.src=="") { PlayMusic.src="music.mp3"; OnOffButton.value="Stop"; } else { PlayMusic.src=""; OnOffButton.value="Play"; } } // --> </script> </head> <body bgcolor="#000000" scrollamount="0"> <input type="button" name="OnOffButton" value="Stop" onClick="OnOff()"> </body> </html> |
Now, u have a web site background music without flash!!!
Related Articles
- Aesthetics of SoundThe following tutorial on the aesthetics of sound in web presentations gives away some tips to always ensure a positive aural experience for your audience.
- Elements to Avoid in Web DesigningAs a web designer, you should design your websites to give your visitors the greatest ease of use, the best impression and most important of all a welcoming experience.
- Web Design And Marketing MistakesDoes your Web site make any of these mistakes? Any of these mistakes will reduce your Web sales.
- The Design ProcessSo you are feeling a bit creative and are ready to sit down and punch out some designs, eh? What works for me might not work for you, however, this article can hopefully offer you a friendly kick start should you get stuck.
- GooglePage and AdSense SolutionsGooglePage (tm) is free and easy to use. GooglePage offers 41 page skins (templates) and a simple editor to create pages. Simply add text, upload pictures, video, music and files, click publish and your page exists on the world wide web. Google offers 100 Mb of space and is coupled to your GMail.....
- 20 Tips for Artists for a Good WebsiteThe internet is a natural place for artists to gravitate - a visual product for a visual buyer in a visual medium. This article will give you 20 excellent tips, not just for artists, that make a gallery online a super experience.
- Web Manager: You Can't Serve EverybodyEvery time you serve someone, you make someone else wait. Every time you publish a piece of content you make other content less findable.
- The Do's and Don'ts of Web Site DesignIve received many emails on the first dos and donts article, people wanted more, so I thought a part two was is order. 1 Dont use background music on your web pages! So.....
- 6 Fatal Design Flaws "Newbie" Web Designers MakeEven if youre not an accomplished webmaster you can still have a professional looking website. You may be like I was five years ago - youre teaching yourself web design and youre starting to catch on to that HTML stuff...
- 8 Tips For Designing A Great WebsiteSquare buttons, round buttons, flashy buttons
