Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Plugin causes browser to crash

Status
Not open for further replies.

soldierB

Technical User
Dec 11, 2005
37
GB
Hi Guys
Im using DW MX 2004

Its just a simple page made in fireworks and exported to HTML, Into dreamweaver and i have put in a media plug in at the bottom of the page to play an MP3, very simpla and basic.

This works on everyones browsers apart from 1, the plug in is crashing a friends browser with script errors.

If I take the media plug in out of the page it runs but crashes when I put it back??

Can anyone suggest what may be causing this?
Thanks
 
Can you post the code and details of the browser that is crashing, or a link to your site.

[Peace][Pipe]
 
Thanks Cheech, Sorry Ive taken so long to get back I couldn not get logged in??

The browser in question pops up a small Message box saying install activX control Yes / No

If you click yes the browser crashes and closes leaving the do you want to send an error box from Microsoft.

If I take the Plug in off the page the browser views it.....all other browsers seem to be fine its just this one and as I say its on WinXP and i think its IE 5 or 6

Code for the HTML Page is as follows if it is of any help:

The plug in is at the very bottom of the page, all the code at the top is for image loading etx and has not proved to be a problem in the past at all, although its a bit of a riddle to read through.

I do hope some one can assist me, even if to identify if the user has a problem and should reinstall IE or windows??

Code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Created Fri May 27 12:47:29 GMT+0100 (GMT Standard Time) 2005-->
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function mmLoadMenus() {
  if (window.mm_menu_0503184411_0) return;
  window.mm_menu_0503184411_0 = new Menu("root",216,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#ffffff","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0503184411_0.addMenuItem("Mediterranean&nbsp;Mistress","window.open('skye.htm', '_self');");
  mm_menu_0503184411_0.addMenuItem("Jolihem&nbsp;Sun&nbsp;Maker&nbsp;At&nbsp;Calronstaff","window.open('ruby.htm', '_self');");
  mm_menu_0503184411_0.addMenuItem("Flaminstaff&nbsp;Firestarter","location='flash.htm'");
   mm_menu_0503184411_0.hideOnMouseOut=true;
   mm_menu_0503184411_0.menuBorder=1;
   mm_menu_0503184411_0.menuLiteBgColor='#ffffff';
   mm_menu_0503184411_0.menuBorderBgColor='#555555';
   mm_menu_0503184411_0.bgColor='#555555';
  window.mm_menu_0527114317_1 = new Menu("root",138,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#ffffff","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0527114317_1.addMenuItem("North&nbsp;East&nbsp;Staffords","window.open('[URL unfurl="true"]http://www.staffdata.co.uk',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Jolihem","window.open('[URL unfurl="true"]http://www.unbrokenline.co.uk/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Arnhem","window.open('[URL unfurl="true"]http://www.arnhemsbt.co.uk/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Blazinstaff","window.open('[URL unfurl="true"]http://www.staffdata.co.uk/blazinstaff/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Alyshy","window.open('[URL unfurl="true"]http://myweb.tiscali.co.uk/adsbtc/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Benlui","window.open('[URL unfurl="true"]http://www.benluistaffords.com/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Spanaffy","window.open('[URL unfurl="true"]http://www.staffdata.co.uk/spanaffy/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Jaybecadans","window.open('[URL unfurl="true"]http://jaybecadans.staffdata.co.uk/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("Alport","window.open('[URL unfurl="true"]http://www.staffdata.co.uk/alport/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("The&nbsp;SKC","window.open('[URL unfurl="true"]http://www.scottishkennelclub.org/',[/URL] '_blank');");
  mm_menu_0527114317_1.addMenuItem("UK&nbsp;KC","window.open('[URL unfurl="true"]http://www.the-kennel-club.org.uk/',[/URL] '_blank');");
   mm_menu_0527114317_1.hideOnMouseOut=true;
   mm_menu_0527114317_1.menuBorder=1;
   mm_menu_0527114317_1.menuLiteBgColor='#ffffff';
   mm_menu_0527114317_1.menuBorderBgColor='#555555';
   mm_menu_0527114317_1.bgColor='#555555';

  mm_menu_0527114317_1.writeMenus();
} // mmLoadMenus()

//-->

</script>
<script language="JavaScript1.2" src="mm_menu.js"></script>
<style type="text/css">
<!--
body {
	background-color: #000000;
}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; }
a:link {
	color: #FFCC00;
}
a:visited {
	color: #FF0000;
}
a:hover {
	color: #0033FF;
}
a:active {
	color: #FFFF00;
}
.style13 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; color: #FFFFFF; }
.style7 {color: #003300;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: xx-small;
}
-->
</style></head>
<body onLoad="MM_preloadImages('main_pics/index_r2_c2_f2.jpg','main_pics/index_r4_c2_f2.jpg','main_pics/index_r6_c2_f2.jpg','main_pics/index_r8_c2_f2.jpg','main_pics/index_r10_c2_f2.jpg','main_pics/index_r12_c1_f2.jpg','main_pics/index_r12_c1_f4.jpg','main_pics/index_r12_c1_f3.jpg','main_pics/index_r14_c1_f2.jpg','main_pics/index_r15_c9_f2.jpg');">
<div align="center">
  <script language="JavaScript1.2">mmLoadMenus();</script>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="CalronstaffNew1.png" fwbase="index.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
  <tr>
   <td><img src="main_pics/spacer.gif" width="13" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="31" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="10" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="2" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="11" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="10" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="52" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="462" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="118" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="41" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  <tr>
   <td colspan="10"><img name="index_r1_c1" src="main_pics/index_r1_c1.jpg" width="750" height="204" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="204" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="10"><img name="index_r2_c1" src="main_pics/index_r2_c1.jpg" width="13" height="127" border="0" alt=""></td>
   <td colspan="4"><a href="about.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('index_r2_c2','','main_pics/index_r2_c2_f2.jpg',1);"><img name="index_r2_c2" src="main_pics/index_r2_c2.jpg" width="54" height="10" border="0" alt="A little about us........."></a></td>
   <td rowspan="10" colspan="5"><img name="index_r2_c6" src="main_pics/index_r2_c6.jpg" width="683" height="127" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="10" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="4"><img name="index_r3_c2" src="main_pics/index_r3_c2.jpg" width="54" height="16" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="16" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="3"><a href="#" onMouseOut="MM_swapImgRestore();MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0503184411_0,48,-1,null,'index_r4_c2');MM_swapImage('index_r4_c2','','main_pics/index_r4_c2_f2.jpg',1);"><img name="index_r4_c2" src="main_pics/index_r4_c2.jpg" width="43" height="9" border="0" alt=""></a></td>
   <td rowspan="8"><img name="index_r4_c5" src="main_pics/index_r4_c5.jpg" width="11" height="101" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="9" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="3"><img name="index_r5_c2" src="main_pics/index_r5_c2.jpg" width="43" height="17" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="17" border="0" alt=""></td>
  </tr>
  <tr>
   <td><a href="#" onMouseOut="MM_swapImgRestore();MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0527114317_1,49,-5,null,'index_r6_c2');MM_swapImage('index_r6_c2','','main_pics/index_r6_c2_f2.jpg',1);"><img name="index_r6_c2" src="main_pics/index_r6_c2.jpg" width="31" height="9" border="0" alt=""></a></td>
   <td rowspan="2" colspan="2"><img name="index_r6_c3" src="main_pics/index_r6_c3.jpg" width="12" height="26" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="9" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="index_r7_c2" src="main_pics/index_r7_c2.jpg" width="31" height="17" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="17" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="2"><a href="[URL unfurl="true"]http://www.staffdata.co.uk/calronstaff/gallery/igallery.asp"[/URL] target="_self" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('index_r8_c2','','main_pics/index_r8_c2_f2.jpg',1);"><img name="index_r8_c2" src="main_pics/index_r8_c2.jpg" width="41" height="12" border="0" alt="Check Our Online gallery"></a></td>
   <td rowspan="4"><img name="index_r8_c4" src="main_pics/index_r8_c4.jpg" width="2" height="49" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="12" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="2"><img name="index_r9_c2" src="main_pics/index_r9_c2.jpg" width="41" height="16" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="16" border="0" alt=""></td>
  </tr>
  <tr>
   <td><a href="news.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('index_r10_c2','','main_pics/index_r10_c2_f2.jpg',1);"><img name="index_r10_c2" src="main_pics/index_r10_c2.jpg" width="31" height="9" border="0" alt="Whats New?"></a></td>
   <td rowspan="2"><img name="index_r10_c3" src="main_pics/index_r10_c3.jpg" width="10" height="21" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="9" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="index_r11_c2" src="main_pics/index_r11_c2.jpg" width="31" height="12" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="12" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="6"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','index_r12_c1','main_pics/index_r12_c1_f2.jpg','main_pics/index_r12_c1_f4.jpg',1);" onClick="MM_nbGroup('down','navbar1','index_r12_c1','main_pics/index_r12_c1_f3.jpg',1);"><img name="index_r12_c1" src="main_pics/index_r12_c1.jpg" width="77" height="17" border="0" alt=""></a></td>
   <td rowspan="2" colspan="4"><img name="index_r12_c7" src="main_pics/index_r12_c7.jpg" width="673" height="54" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="17" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="6"><img name="index_r13_c1" src="main_pics/index_r13_c1.jpg" width="77" height="37" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="37" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="3" colspan="7"><a href="[URL unfurl="true"]http://www.staffdata.co.uk/companion/index.asp"[/URL] target="_blank" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('index_r14_c1','','main_pics/index_r14_c1_f2.jpg',1);"><img name="index_r14_c1" src="main_pics/index_r14_c1.jpg" width="129" height="112" border="0" alt="Simple Pedigree Printing Software & Canine Database"></a></td>
   <td colspan="3"><img name="index_r14_c8" src="main_pics/index_r14_c8.jpg" width="621" height="1" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="3"><img name="index_r15_c8" src="main_pics/index_r15_c8.jpg" width="462" height="164" border="0" alt=""></td>
   <td><a href="[URL unfurl="true"]http://pub17.bravenet.com/guestbook/1426291267/"[/URL] target="_self" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('index_r15_c9','','main_pics/index_r15_c9_f2.jpg',1);"><img name="index_r15_c9" src="main_pics/index_r15_c9.jpg" width="118" height="48" border="0" alt="View Or Sign Our Guestbook"></a></td>
   <td rowspan="3"><img name="index_r15_c10" src="main_pics/index_r15_c10.jpg" width="41" height="164" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="48" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="2"><img name="index_r16_c9" src="main_pics/index_r16_c9.jpg" width="118" height="116" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="63" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="7"><img name="index_r17_c1" src="main_pics/index_r17_c1.jpg" width="129" height="53" border="0" alt=""></td>
   <td><img src="main_pics/spacer.gif" width="1" height="53" border="0" alt=""></td>
  </tr>
</table>
  <p><span class="style4"><a href="index.htm">Homepage</a></span> | <span class="style4"><a href="about.htm">About
        Us </a></span>| <span class="style4"><a href="news.htm">News</a></span> | <span class="style4"><a href="[URL unfurl="true"]http://www.staffdata.co.uk/calronstaff/gallery/igallery.asp"[/URL] target="_self">Gallery</a></span> | <a href="mailto:nesbtc@hotmail.com" class="style4">Contact
        Us </a>| <a href="[URL unfurl="true"]http://pub17.bravenet.com/guestbook/1426291267/"[/URL] target="_self" class="style4">Guestbook</a></p>
  <p>
    <embed src="tune.mp3" width="358" height="56"></embed>
</p>
  <p><span class="style7"><span class="style13">Please use a screen resolution of 1024 X 768 to view these pages correctly.</span></span><!-- Start Bravenet.com Service Code -->
    <script language="JavaScript" type="text/javascript" src="[URL unfurl="true"]http://pub17.bravenet.com/counter/code.php?id=386313&usernum=1426291267&cpv=2">[/URL]
    </script>
    <!-- END DO NOT MODIFY -->
  </p>
</div>
</body>
</html>
 
Basically all DW puts into the code is:

Code:
<embed src="tune.mp3" width="358" height="56"></embed>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top