If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2006
    Member #

    i am trying to have an mp3 file play on the load of my site. the file is pennies from heavan by frank sinatra. I downloaded it and tryed 2 different codes to get it to play. first, i tryed :
    <p align="center" onload="MM_controlSound('play','document.CS1149459 618906','Frank%20Sanatra%20-%20Pennys%20From%20Heaven.mp3')"><font size="6">
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,29,0" width="550" height="400">
    <param name="movie" value="dad%20intro%202.swf">
    <param name="quality" value="high">
    <embed src="dad%20intro%202.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width="550" height="400"></embed>

    then i tryed:

    <embed src="Frank%20Sanatra%20-%20Pennys%20From%20Heaven.mp3">
    <noembed> <bgsound src="Frank%20Sanatra%20-%20Pennys%20From%20Heaven.mp3"></noembed>
    are these the right codes? Any help would be much appreciated.


  3. #2
    Senior Member
    Join Date
    May 2003
    Member #
    It is a pain, as <object> is thge standard, but IE has it'sown ugly variant of <object>, giving it a classid


    This code worked for me in Firefox and Opera, although in Opera, a mini control appeared (stop, play, pause, and a horizontal bar to scroll the song needle).

    HTML Code:
    <object type="audio/x-mpeg" data="1.mp3"></object>
    And this works in IE

    HTML Code:
    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
    		<param name="filename"  value="1.mp3">
    Good luck.

  4. #3
    Senior Member minute44's Avatar
    Join Date
    Mar 2006
    Nottingham, UK
    Member #
    I hate websites with music... Ask around, lots of us do.

    One to think about.
    No ma'am, we in IT don't have a sense of humor we're aware of.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search tags for this page

on load play mp3

play mp3 on load

Click on a term to search for related topics.
All times are GMT -6. The time now is 09:44 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: