Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help with increasing volume on mp3 javascript!

    Hi,
    I really, really need help increasing the volume of the mp3's that play on my webpage. I know they can be increased because when I right click on the embedded windows media player, i have the choice to increase volume.

    Could someone give me a snippet of javascript that increases the volume to either the maximum, or something like 200% above normal.

    Thanks!

    here's the random mp3 code I’m using. any help is greatly appreciated!

    <SCRIPT>
    <!--developed by A1 javascripts-http://www.A1javascripts.com -Please keep these lines intact if using this random midi script-->

    var nummidi = 5
    day = new Date()
    seed = day.getTime()
    ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*nummidi + 1,10)

    if (ran == (1))
    mp3=("www.song1.com")
    if (ran == (2))
    mp3=("www.song2.com")
    if (ran == (3))
    mp3=("www.song3.com")
    if (ran == (4))
    mp3=("www.song4.com")
    if (ran == (5))
    mp3=("www.song5.com")
    document.write('<EMBED SRC= "' + mp3 + '" controller=TRUE align=left height=24 width=35 Autostart=true hidden=false loop=true>')
    </script>

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #3
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by neofibril
    Thank you very, very much, but how do i add this to my javascript?

  • #4
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For Internet Explorer, there are a couple of options. Each would probably require that your javascript be modified, or rewritten.
    Option 1: add the media player object to the page (Player Control Guide), and script Object Model methods for that.

    Option 2: add the sound files as t:AUDIO elements of HTML+TIME: Media, and script methods for those.
    Both options are well documented.

    I suggest that you read through enough of the information to decide which approach would be best, and then try out some of the provided examples.

    If you have further questions, please provide the html that you are working with, in addition to the javascript.

  • #5
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, sorry, i'm a javascript noob, and really have no idea even when to begin.

    I got this code:

    <t:AUDIO VOLUME="100" ID=oSegment1 PLAYER=dmusic SRC="sample.sgt"/>

    from that page, but have no idea if it will work, or even where to put it to test if it will work.

    Could you please be a little more specific, such as "place this code here, and try" or something like that? Sorry, I just have no idea

    thanks
    Last edited by holodoctor1; 06-20-2004 at 05:03 AM.

  • #6
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by holodoctor1
    Could you please be a little more specific...
    Would you like me to read the tutorials for you?
    This is going to require some effort on your part. I might be willing to help with the scripting, but am not going to rebuild your page...

  • #7
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    fine fine, sorry

    just thought there might be some piece of code you add somewhere.

    something simple

    forget it.


  •  

    Posting Permissions

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