<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002927" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002927</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012932</link>
    <description> &lt;p&gt;For using sound in a webpage, I would go for a plugin like Flash. It is easy to learn and there is a terrific free sound on/off demo that comes with Flash.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Lloyd Hassell&lt;br /&gt;
   &lt;a href=&quot;mailto:lloydhass@hotmail.com&quot; class=&quot;bb-email&quot;&gt;lloydhass@hotmail.com&lt;/a&gt;&lt;br /&gt;
 &lt;a href=&quot;http://go.to/hass&quot; class=&quot;bb-url&quot;&gt;http://go.to/hass&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 Feb 2000 16:17:00 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1012932 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012931</link>
    <description> &lt;p&gt;OK everyone, I promise this will be my last post on this subject.&lt;/p&gt;
&lt;p&gt;Again, thanks to Ian for his script - it works great, and I even figured out how to get all my images to change along with playing the sound.&lt;/p&gt;
&lt;p&gt;My problem is that I really do not fully understand how the script works.  I have spent hours looking at it and referencing my Javascript manual, but most of it still does not make sense to me.  It is driving me crazy to have code running my sight that I do not understand. (I guess I need to get myself into a more advanced Javascript course).&lt;/p&gt;
&lt;p&gt;If anyone has the time and would be willing to post a short expaination of what each line of code is doing, it would be tremendously appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 Feb 2000 13:09:00 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1012931 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012930</link>
    <description> &lt;p&gt;Ian,&lt;/p&gt;
&lt;p&gt;Sorry to bother you.  First of all, a million thanks for the mouseover sound script you&lt;br /&gt;
gave me.  It works great for both Netscape and IE.&lt;/p&gt;
&lt;p&gt;I&#039;m hoping you can help with one more thing. I think it should be simple at this point,&lt;br /&gt;
but I&#039;ve been up til midnight trying to get it to work with no luck.  I have 6 different&lt;br /&gt;
images on the screen, and with your script I can get a different song to play with each&lt;br /&gt;
image.  The last thing i was trying to do was to also change the image to a different&lt;br /&gt;
picture when the music starts.  I can get this to work for a single picture by putting&lt;br /&gt;
document.image1.src=&quot;newpic.gif&quot; in the playSound funtion, and&lt;br /&gt;
document.image1.src=&quot;oldpic.gif&quot; in the stopSound function (where image1 is in the&lt;br /&gt;
&amp;lt;img&amp;gt; tag (&amp;lt;img src=&quot;oldpic.gif name=&quot;image1&amp;gt;.  The problem is trying to figure out how to pass parameter correctly to the playSound and stopSound functions so it&lt;br /&gt;
changes the correct images.  Any ideas on how to do this?   &lt;/p&gt;
&lt;p&gt;Thanks again, you&#039;ve really been great and I appreciate it tremendously.&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Feb 2000 04:54:00 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1012930 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012929</link>
    <description> &lt;p&gt;Ian,&lt;/p&gt;
&lt;p&gt;I figured out what was wrong. The statement should have been:&lt;/p&gt;
&lt;p&gt;ver4 = IE|NS? 1:0;  instead of:&lt;/p&gt;
&lt;p&gt;ver4 = IE| |NS? 1:0;&lt;/p&gt;
&lt;p&gt;This seems to work great with my test case in both Netscape and IE.  Thanks a million for your help!&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Feb 2000 02:53:00 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1012929 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012928</link>
    <description> &lt;p&gt;Ian,&lt;/p&gt;
&lt;p&gt;OK.  I cpoied this into an HTML document and tried it.  I&#039;m getting a syntax error on the statement:&lt;/p&gt;
&lt;p&gt;ver4 = IE| |NS? 1:0;&lt;/p&gt;
&lt;p&gt;And I get the error &quot;playSound is not defined&quot;.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Feb 2000 23:38:00 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1012928 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012927</link>
    <description> &lt;p&gt;Ian,&lt;/p&gt;
&lt;p&gt;Thanks for the detailed reply!  I&#039;m still very new to this, and I&#039;m trying to teach myself Javascript, so I really don&#039;t fully understand everything you&#039;re doing here, but I think I&#039;ll figure it out.  Thanks again!&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Feb 2000 23:14:00 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1012927 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012926</link>
    <description> &lt;p&gt;Hi Bob,&lt;br /&gt;
here is a mouseover sound script you might like to try. it works in NS and IE browsers.&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- --&amp;gt;&amp;lt;BGSOUND ID=&quot;auIEContainer&quot;&amp;gt;&lt;br /&gt;
&amp;lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
// Preload and play audio files with event handler (MouseOver sound)&lt;br /&gt;
// designed by JavaScript Archive, (c)1999&lt;br /&gt;
// Get more free javascripts at &lt;a href=&quot;http://jsarchive.8m.com&quot; class=&quot;bb-url&quot;&gt;http://jsarchive.8m.com&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;var aySound = new Array();&lt;br /&gt;
// Below: source for sound files to be preloaded&lt;br /&gt;
aySound[0] = &quot;YOUR.wav&quot;;&lt;br /&gt;
aySound[1] = &quot;YOUR1.wav&quot;;&lt;br /&gt;
// DO NOT edit below this line&lt;/p&gt;
&lt;p&gt;IE = (navigator.appVersion.indexOf(&quot;MSIE&quot;)!=-1 &amp;amp;&amp;amp; document.all)? 1:0;&lt;br /&gt;
NS = (navigator.appName==&quot;Netscape&quot; &amp;amp;&amp;amp; navigator.plugins[&quot;LiveAudio&quot;])? 1:0;&lt;br /&gt;
ver4 = IE&amp;#0124; &amp;#0124;NS? 1:0;&lt;br /&gt;
onload=auPreload;&lt;/p&gt;
&lt;p&gt;function auPreload() {&lt;br /&gt;
if (!ver4) return;&lt;br /&gt;
if (NS) auEmb = new Layer(0,window);&lt;br /&gt;
else {&lt;br /&gt;
Str = &quot;&amp;lt;DIV ID=&#039;auEmb&#039; STYLE=&#039;position:absolute;&#039;&amp;gt;&amp;lt;/DIV&amp;gt;&quot;;&lt;br /&gt;
document.body.insertAdjacentHTML(&quot;BeforeEnd&quot;,Str);&lt;br /&gt;
}&lt;br /&gt;
var Str = &#039;&#039;;&lt;br /&gt;
for (i=0;i&amp;lt;aySound.length;i++)&lt;br /&gt;
Str += &quot;&amp;lt;EMBED SRC=&#039;&quot;+aySound[i]+&quot;&#039; AUTOSTART=&#039;FALSE&#039; HIDDEN=&#039;TRUE&#039;&amp;gt;&quot;&lt;br /&gt;
if (IE) auEmb.innerHTML = Str;&lt;br /&gt;
else {&lt;br /&gt;
auEmb.document.open();&lt;br /&gt;
auEmb.document.write(Str);&lt;br /&gt;
auEmb.document.close();&lt;br /&gt;
}&lt;br /&gt;
auCon = IE? document.all.auIEContainer:auEmb;&lt;br /&gt;
auCon.control = auCtrl;&lt;br /&gt;
}&lt;br /&gt;
function auCtrl(whSound,play) {&lt;br /&gt;
if (IE) this.src = play? aySound[whSound]:&#039;&#039;;&lt;br /&gt;
else eval(&quot;this.document.embeds[whSound].&quot; + (play? &quot;play()&quot;:&quot;stop()&quot;))&lt;br /&gt;
}&lt;br /&gt;
function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }&lt;br /&gt;
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }&lt;br /&gt;
//--&amp;gt;&amp;lt;/SCRIPT&amp;gt;&amp;lt;!-- --&amp;gt;&lt;/p&gt;
&lt;p&gt;Then in your link add&lt;br /&gt;
onMouseOver=&quot;playSound(0)&quot; onMouseOut=&quot;stopSound(0)&quot;&lt;/p&gt;
&lt;p&gt;IE: &amp;lt;A HREF=&quot;YourPage.html&quot; onMouseOver=&quot;playSound(0)&quot;&lt;br /&gt;
onMouseOut=&quot;stopSound(0)&quot;&amp;gt;&amp;lt;/A&amp;gt;&lt;/p&gt;
&lt;p&gt;You can preload and use different sounds on seperate links by adding aysound[2]=... etc and changing your mouseover to playsound(1), stopsound(1) etc.&lt;br /&gt;
Hope this helps.&lt;/p&gt;
&lt;p&gt;Ian&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Feb 2000 22:55:00 +0000</pubDate>
 <dc:creator>Ian</dc:creator>
 <guid isPermaLink="false">comment 1012926 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012925</link>
    <description> &lt;p&gt;Kool Dude,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.  I&#039;m not sure how to run a bgsound from an onmouseover.  It&#039;s not really the embed that doesn&#039;t work, that works fine with both browsers.  It&#039;s the .play statement in the function that IE doesn&#039;t like.  In order to play the bgsound from an onmouseover, I&#039;d still need some script with some statement to do that, correct?&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Feb 2000 15:07:00 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1012925 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/playing-sound-netscape-vs-ie#comment-1012924</link>
    <description> &lt;p&gt;Inn IE mae bee u kan uze a bgsound andd thenn plae itt onmouseover insted? Mite worc.&lt;br /&gt;
 &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Feb 2000 03:48:00 +0000</pubDate>
 <dc:creator>Kool Dude</dc:creator>
 <guid isPermaLink="false">comment 1012924 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
