If you are seeing this message, it is possible the page did not load properly. Please hit reload/refresh on your browser.
If you still see this message, you probably do not have a browser that supports web standards, although its content is accessible to any browser or Internet device.

Cool Tips & Tricks Cool Tips & Tricks

Help Communities:
Help Forums Bug Base
<< Prev Topic | Next Topic >>
Cool Tips & Tricks ::: HTML FAQ ::: (HTML Tip) adding sound to your board
New Topic    Add Reply
Topic: (HTML Tip) adding sound to your board  (?)  Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend
Nutrocker

ezboard Moderator
ezSupporter
Posts: 32
Posted: 10/11/01 6:20 am    
(HTML Tip) adding sound to your board
Tip number 1: Adding sound.

This was originally posted by kanwulf, it explains all what you need to know on adding music. :)

The following code will work in signatures and the 3rd and 4th text boxes in the Custom HTML area of the control center.

Quote:
Don't do it it's annoying!!

But in the interest of sharing knowledge:

The <*Embed> and <Bgsound> Tags
You can use the Embed tag to have sound automatically play on your page. However, Netscape Navigator and Internet Explorer require two DIFFERENT tags to tell the browser how to handle sound files. You MUST include both tags to get the sound file to play in all formats of both browsers.
The <*EMBED> Tag works in Internet Explorer 4.0x, 5.0x, Navigator 3.0x, 4.0x

The <BGSOUND> Tag works in Internet Explorer 3.0x (best used with the NOEMBED tag... see below)

Here is the coding for adding sound files that most every browser can handle:

<*EMBED SRC="example.mid" AUTOSTART="TRUE" LOOP="TRUE" WIDTH="145" HEIGHT="60" ALIGN="CENTER">
<NOEMBED>
<BGSOUND SRC="example.mid" LOOP="10">
</NOEMBED>
</EMBED>


Copy and Paste this example into your page and replace the "example.mid" with the name of your sound file.


<*Embed> Tag Attributes
SRC=
Enter the name of the sound file you wish to use, like "example.mid" or "example.wav".
AUTOSTART=
Using this attribute will tell the browser to play a sound automatically by entering "TRUE" as the Value. The sound will NOT start automatically if you enter "FALSE" as the Value.

LOOP= In Netscape, you can tell the browser to play the sound over and over in an endless Loop by entering "TRUE" as the Value. You can tell the browser to play the sound ONCE by entering "FALSE" as the Value. (Internet Explorer does not recognize this attribute. Use PLAYCOUNT= as shown below for IE.)

PLAYCOUNT=
Entering a number ("2" or "5" etc.) will tell Internet Explorer how many times to play the sound. (Netscape does not recognize this attribute.)

WIDTH= and HEIGHT=
In Netscape, these attributes define the appearance and size of the CONTROL PANEL it creates. (Internet Explorer does not recognize this Tag.)

The smallest Value you should use for these two attributes is:

WIDTH="145" HEIGHT="60"

If you put anything smaller or do not include these two attributes you may encounter trouble getting the control panel to appear properly.

CONTROLLER=
For Internet Explorer, enter "TRUE" as the Value to show a CONTROL PANEL and enter "FALSE" to not show it.

ALIGN=
Tells the Browser where to display the CONTROL PANEL. Enter "right", "left", "absmiddle", "top" or "bottom" as your Value.

Remove any asterix's * !!

Edited by: Nutrocker at: 12/22/02 2:24:16 pm

  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 41
Posted: 10/11/01 6:34 am    
Stop music playing on a page hyperlink
In any place which allows HTML put this:

<**a href="***javascript:for(iVrW6Bc=0;iVrW6Bc<document.embeds.length;iVrW6Bc++){if(document.embeds[iVrW6Bc].toString().indexOf('SoundPlayer')!=-1){void(document.embeds[iVrW6Bc].stop())}}">Stop Music Playing On A Page</a>

but remove all asterisks! You should get a hyperlink saying "Stop Music Playing On A Page". You can then drag this hyperlink to your Bookmarks / Favorites folder. Then when you come across a site playing music in a non-Real Player format, just click on your new bookmark and that music will stop!

By Jagannatha


  reply to this message

atlass

ezboard Moderator
ezSupporter
Posts: 1287
Posted: 4/17/02 6:12 am    
playing music for one time per visit only.
   <script type="text/javascript" language="JavaScript">

  rim = document.cookie;

  function getTag(name) { 

    index = rim.indexOf(name + "=");

    if (index == -1) return null;

    startVal = rim.indexOf("=", index) + 1;

    finishVal = rim.indexOf(";", startVal);

    if (finishVal == -1) finishVal = rim.length;

    return unescape(rim.substring(startVal, finishVal)); }

  if(location.href == "http://Source_of_your_board.com/frm1"){

    if (!getTag("firstVisit")) {

    document.write("<EMBED src='http://Your_sound.mid' hidden=true AUTOSTART=true LOOP=true WIDTH=144 HEIGHT=74>")

    document.write("<NOEMBED><BGSOUND SRC='http://Your_Sound.mid' AUTOSTART=true LOOP=true WIDTH=144 HEIGHT=74></NOEMBED>");

    document.cookie = "firstVisit=true";

  }

}

</script> 


Edit the green highlighted section and add your FULL board URL

Edit the yellow highlighted section and add the FULL URL of your sound file.

Thanks to Electric graffiti

Edited by: Nutrocker at: 2/13/04 4:05 pm

  reply to this message

Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend

New Topic    Add Reply

jump to:
Topic Control Image::: Topic Commands
<< Prev Topic | Next Topic >>

Icon Legend

reply button:::Reply to Post Button   edit button:::Edit Post Button  delete button:::Delete Post Button (Moderator Only)

subscribe/unsubscribe to thread button:::Subscribe to Thread Button   email to friend button:::Email to Friend Button  



- Cool Tips & Tricks - HTML FAQ -

Communitiesezboard Help Communities:

Help Forums Help Forums Bug Base Bug Base





Powered By ezboard® Ver. 7.32
Copyright ©1999-2007 ezboard, Inc.