Results 1 to 2 of 2

Thread: Javascript and HTML object reference on hard drive problem

  1. #1
    Join Date
    Nov 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript and HTML object reference on hard drive problem

    I have the following:

    <BASE HREF="http://leonardito.com/">

    When I try to reference a mp3 object on my hard drive I can't.

    This is in the html document.
    <OBJECT
    ID="mediaPlayer"
    CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    CODEBASE="http://activex.microsoft.com/activex/
    controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    STANDBY="Loading Microsoft Windows Media Player components..."
    TYPE="application/x-oleobject">
    <PARAM NAME="fileName"VALUE="\mymusiclyrics\hoyesadios.mp3">
    <PARAM NAME="animationatStart" VALUE="true">
    <PARAM NAME="transparentatStart" VALUE="true">
    <PARAM NAME="autoStart" VALUE="true">
    <PARAM NAME="showControls" VALUE="true">
    </OBJECT>

    On my hard drive it plays with

    <PARAM NAME="fileName"C:\matt\music\mymusiclyrics\hoyesadios.mp3">

    Say I in the html on the harddrive I put
    <BASE HREF="C:\matt\music\">
    How can I make it so it can play on my website dand hard drive with changing having to change the file name.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I just answered this question in another thread, but there I thought the problem was not being able to reference the live file. Here it looks like you are having trouble referencing the local file. For a local file, use its absolute path, ex:

    Code:
    <param name="fileName" value="file://localhost/C:/matt/music/mymusiclyrics/hoyesadios.mp3">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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