★ wanayoo — archive 1999 http://www.liveupdate.com/embed.htmlNouvelle recherche | Portail wanayoo
Information for Crescendo Web Page Authors

There are two basic methods of supporting Crescendo on your web pages.  One requires the visitor to use the free Crescendo player for reliable MIDI support in Internet Explorer and Netscape.  Crescendo is the Internet’s only streaming MIDI player letting you build playlists and jukeboxes, and even use JavaScript to remotely control the Crescendo player. This is why there are over 10,000 Crescendo sites that require Crescendo.  

The second method will verify your browser type, then check to see if Crescendo is installed.  If Crescendo is installed, the browser will use Crescendo to play MIDI music.  If Crescendo is not installed, Internet Explorer will use MIDI Mapper, and Netscape will use it's basic player.  

Method 1 - Require Crescendo to play MIDI 

Note: This code requires Crescendo. Make sure to replace "yourmidifile.mid" with the name of your MIDI file in both occurrences. Go to http://www.liveupdate.com/cpauth.html and http://www.liveupdate.com/activexauth.html for additional parameters.

Copy the code below the line and paste it in your document where you want the Crescendo player to appear.


<OBJECT ID=Crescendo 
CLASSID="clsid:0FC6BF2B-E16A-11CF-AB2E-0080AD08A326" 
HEIGHT=55 WIDTH=200> 
<PARAM NAME="Song" VALUE="yourmidifile.mid"> 
<EMBED TYPE="music/crescendo" SONG="yourmidifile.mid" 
PLUGINSPAGE="http://www.liveupdate.com/dl.html" 
HEIGHT=55 WIDTH=200> 
</OBJECT>

Method 2 and 3 - Use default players when Crescendo is not present

Note: Method 3 is an alternate way to implement Method 2 where the code that checks the browsers resides in it's own file which is attached using an Include statement.  

Use the following JavaScript and VBScript code which discovers if a visitor has Crescendo and changes the HTML code appropriately. This code requires visitors to have Javascript enabled.

Copy the code below the line and paste it in the head of your HTML document.


<SCRIPT LANGUAGE="VBScript">
<!-- 
// Copyright (C) 1999 LiveUpdate division of LABTECH 
// Permission for use granted to all music lovers on the net
function PlayIE(musicFile)

if IsObject(navigator) and (navigator.appName = "Microsoft Internet Explorer") then
   dim cObj
   dim objTag

   on error resume next
   set cObj = CreateObject("Crescendo")
   cres = IsObject(cObj)
   if (cres) then
        document.write "<OBJECT ID=Crescendo " & _
          "CLASSID=""clsid:0FC6BF2B-E16A-11CF-AB2E-0080AD08A326"" " & _
          "HEIGHT=55 WIDTH=200> " 
        document.write "<PARAM NAME=""Song"" VALUE=""" & musicFile & """>"
        document.write "</OBJECT>"
   else
      document.write "<bgsound src=/old?u=http%3A%2F%2Fwww.liveupdate.com%2F%26quot%3B%26quot%3B%26quot%3B&y=1999 & musicFile & """ loop=infinite>"
   end if
end if

end function
//--> 
</script>

<SCRIPT LANGUAGE="JavaScript">
<!-- 
function PlayNS(musicFile)
{
   if (navigator.appName == "Netscape")
      {
      var EmbedString
      var musicFile

      EmbedString = "<EMBED SRC='" + musicFile + "'"
      EmbedString += "PLUGINSPAGE='http://www.liveupdate.com/dl.html' HEIGHT=55 WIDTH=200>"
      document.write(EmbedString)
      }
}

function PlaySong(SongURL)
{
   if (navigator.appName == "Netscape")
       PlayNS(SongURL)
   else PlayIE(SongURL)
}
//--> 
</script>
Copy and paste the following code where you want the MIDI player to appear. Make sure to replace "yourmidifile.mid" with the name of your MIDI file.

<SCRIPT LANGUAGE="JavaScript">
<!-- 
PlaySong("yourmidifile.mid")
//--> 
</script>
Method 3 - Variation on Method 2 with attached files 

We have placed the above code into two files. Download this zip file http://www.liveupdate.com/crescode.zip and extract the files cres.vb and cres.js into your HTML directory. This method requires visitors to have Javascript enabled and Netscape or Internet Explorer 3.0 or above.

Copy and paste the following code in the Head of your document.


<head>
<script language="VBScript" src=/old?u=http%3A%2F%2Fwww.liveupdate.com%2F%26quot%3Bcres.vb%26quot%3B%26gt%3B%26lt%3B%2Fscript%26gt&y=1999
<script language="JavaScript" src=/old?u=http%3A%2F%2Fwww.liveupdate.com%2F%26quot%3Bcres.js%26quot%3B%26gt%3B%26lt%3B%2Fscript%26gt&y=1999
</head>

 

Copy and paste the following code in the Body of your document where you want the MIDI player to appear:

<SCRIPT LANGUAGE="JavaScript">
<!-- 
PlaySong("yourmidifile.mid")
//--> 
</script>

Links to other Crescendo authoring pages:
 

SoundChatDownload CrescendoProductsMIDI musicTech SupportContact Us

  Copyright © 1999 LiveUpdate. All rights reserved.