SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Addict sstaubin01's Avatar
    Join Date
    Nov 2000
    Location
    Ont, Canada
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone help me with this error.

    error: object doesn't support this property or method
    line: 10
    char: 30 (actually, char 30 is the A in A.stop()

    Here's the code

    <html>
    <head>
    <script language="JavaScript">
    <!-- Sound Script Source
    var audioOn = false;
    function audioDo(doWhat,toWhat){
    if(audioOn){
    var A = eval('document.'+toWhat);
    if (A != null){
    if (doWhat=='stop') A.stop();
    else{
    if (navigator.appName == 'Netscape') A.play();
    else{
    if (document.M == null){
    document.M = false; var m;
    for(m in A) if (m == "ActiveMovie"){
    document.M = true; break;
    }
    }
    if (document.M) A.SelectionStart = 0;
    if (document.M) A.play();
    }
    }
    }
    }
    }
    //-->
    </script>

    <script language="JavaScript">
    <!-- Image Script Source
    function changePic(objName,picName)
    {objName.src=picName}
    //-->
    </script>

    </head>

    <body onLoad="audioOn=true">
    <div align="left">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td width="1%">
    <p align="center"><a href="#"
    onmouseover="changePic(document.images[0],'images/NewMembersBlob2.GIF'); audioDo('play','BloopSound');"
    onmouseout="audioDo('stop','BloopSound')">
    <img border="0" src="images/NewMembersBlob1.GIF" width="115" height="77"></a><img border="0" src="images/NewMembersBlob2.GIF" width="1" height="1"></td>
    </tr>
    </table>
    </div>

    <p>
    <embed NAME="BloopSound" SRC="sounds/Bloop.wav" MASTERSOUND LOOP="false" AUTOSTART="false" AUTOREWIND="true" HIDDEN="true" WIDTH="0" HEIGHT="0">
    </p>
    Last edited by sstaubin01; Feb 20, 2001 at 23:55.


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
  •