1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

HTML / Javascript Help

Discussion in 'Software Development' started by Paynesmanor, Feb 17, 2007.

Thread Status:
Not open for further replies.
  1. Paynesmanor

    Paynesmanor Thread Starter

    Joined:
    May 14, 2006
    Messages:
    219
    I used this script to make a list of songs on my homepage a few years ago, Why Won't it work now?

    Is there something simmilar that I can use now? I dont want a playlist, I just want seperate links to the different music files.




    <script>
    function PlaySong(name)
    {
    var text =
    "<embed src = \"" + name + "\" type = \"audio/x-bmx\" " +
    "backcolor = \"200, 200, 200\" " +
    "scrollspeed = 0 " +
    "infocolor = \"0, 140, 200\" " +
    "width = 200 height = 80" +
    ">";
    if (document.all)
    {
    // Internet explorer
    document.all.Plugin.innerHTML = text;
    }
    else
    {
    // Netscape
    document.Plugin.document.write(text);
    document.Plugin.document.close();
    }
    }
    </script>

    (theres more to it, I only grabbed the basic).
    <style type="text/css">
    .music
    {
    position:absolute;
    left:200px;
    top:60px
    }

    .bla_bla
    {
    position:absolute;
    left:500px;
    top:530px
    }
    </style>





    <div class="pos_abs">
    <div ID = "PlayList" style="width: 354; height: 178">

    <p align="center"><b><font face="Verdana" size="4" color="#FF0000">Click on the song title you wish to hear.</font></b></center> <BR>


    <a href = "javascript:playSong('#')" title="Mute Music">

    <font face="Verdana" size="2" color="red">STOP MUSIC</font></a><font color= "red"><font face="Verdana" size="2"><BR>

    </font>

    <a href = "javascript:playSong('http://one.fsphost.com/ntlgnce/Allan%20Jackson%20-%20Remember%20When.mp3')" loop=true title="Remember When.">
    <font face="Verdana" size="2">Far Away</font></a><font face="Verdana" size="2"> <BR>

    </font>

    <a href = "javascript:playSong('#')" title="Mute Music">
    <font face="Verdana" size="2" color="RED"><strong>STOP MUSIC</strong></font></a><font color= "RED"><b><font face="Verdana" size="2">
    </font>
    </b>
    </div></div>

    <div ID="Plugin">
    <embed src="http://one.fsphost.com/ntlgnce/Kid%20Rock%20-%20Single%20Father.mp3" hidden=true autostart=true loop=true width="128" height="128">
    <noembed>
    <bgsound src="http://SONG URL"></noembed></div>
    </div>
    </body>
    <script>
    function PlaySong(name)
    {
    var text =
    "<embed src = \"" + name + "\" type = \"audio/x-bmx\" " +
    "backcolor = \"200, 200, 200\" " +
    "scrollspeed = 0 " +
    "infocolor = \"0, 140, 200\" " +
    "width = 0 height = 0" +
    ">";
    if (document.all)
    {
    // Internet explorer
    document.all.Plugin.innerHTML = text;
    }
    else
    {
    // Netscape
    document.Plugin.document.write(text);
    document.Plugin.document.close();
    }
    }
    </script>
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/544763

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice