473,473 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript function is not working in firefox

3 New Member
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript" type="text/javascript" >
  2. function showflash(i)
  3. {
  4.     if (i==1)
  5.         window.parent.document.getElementById('V1').movie = "flash/Live-Media-sks.swf";
  6.     else if (i==2)
  7.         window.parent.document.getElementById('V1').movie = "flv/horoscope.swf";
  8.  
  9.         else if (i==3)
  10.         window.parent.document.getElementById('V1').movie = "flv/kitty-witty.swf";
  11.             else if (i==4)
  12.         window.parent.document.getElementById('V1').movie = "flv/mr-wise.swf";
  13.             else if (i==5)
  14.         window.parent.document.getElementById('V1').movie = "flv/make-my-word.swf";
  15.             else if (i==6)
  16.         window.parent.document.getElementById('V1').movie = "flv/health-live.swf";
  17.             else if (i==7)
  18.         window.parent.document.getElementById('V1').movie = "flv/graffti.swf";
  19.             else if (i==8)
  20.         window.parent.document.getElementById('V1').movie = "flv/trivia.swf";
  21.             else if (i==9)
  22.         window.parent.document.getElementById('V1').movie = "flv/fashion.swf";
  23.             else if (i==10)
  24.         window.parent.document.getElementById('V1').movie = "flv/humor.swf";
  25.             else if (i==11)
  26.         window.parent.document.getElementById('V1').movie = "flv/lm-logo.swf";
  27.             else if (i==12)
  28.         window.parent.document.getElementById('V1').movie = "flv/sports.swf";
  29. }
  30.  
  31. </script>
Jul 8 '08 #1
3 1610
acoder
16,027 Recognized Expert Moderator MVP
Do you get any errors? If so, what is it?

Post the code for the element V1. Please use code tags when posting code (see How to Ask a Question).

[Just a note: you could replace those if-statements with a switch statement.]
Jul 8 '08 #2
skwebmedia
3 New Member
I am using this JS for changing flash movie in html on simple mouse click. but in Mozilla Browser this is not working at all... pls help!

http://www.livemedia.in/beta/audience.html

this is the link what i am talking bout. In this page you will find watch button (image button) in iFrame window. If we are click on this button the right side TV screen will changed with new flash mov but in Mozilla its not working.



Code of iFrame Page


Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>:::Live Media:::</title>
  6. <link href="style/live-media.css" rel="stylesheet" type="text/css" />
  7.  
  8. <script type="text/JavaScript">
  9. <!--
  10. function MM_preloadImages() { //v3.0
  11.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  12.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  13.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  14. }
  15.  
  16. function MM_swapImgRestore() { //v3.0
  17.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  18. }
  19.  
  20. function MM_findObj(n, d) { //v4.01
  21.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  22.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  23.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  24.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  25.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  26. }
  27.  
  28. function MM_swapImage() { //v3.0
  29.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  30.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  31. }
  32. //-->
  33. </script>
  34.  
  35.  
  36.  
  37. <script language="javascript" type="text/javascript" >
  38. function showflash(i)
  39. {
  40.     if (i==1)
  41.         window.parent.document.getElementById('V1').movie = "flash/Live-Media-sks.swf";
  42.     else if (i==2)
  43.         window.parent.document.getElementById('V1').movie = "flv/horoscope.swf";
  44.  
  45.         else if (i==3)
  46.         window.parent.document.getElementById('V1').movie = "flv/kitty-witty.swf";
  47.             else if (i==4)
  48.         window.parent.document.getElementById('V1').movie = "flv/mr-wise.swf";
  49.             else if (i==5)
  50.         window.parent.document.getElementById('V1').movie = "flv/make-my-word.swf";
  51.             else if (i==6)
  52.         window.parent.document.getElementById('V1').movie = "flv/health-live.swf";
  53.             else if (i==7)
  54.         window.parent.document.getElementById('V1').movie = "flv/graffti.swf";
  55.             else if (i==8)
  56.         window.parent.document.getElementById('V1').movie = "flv/trivia.swf";
  57.             else if (i==9)
  58.         window.parent.document.getElementById('V1').movie = "flv/fashion.swf";
  59.             else if (i==10)
  60.         window.parent.document.getElementById('V1').movie = "flv/humor.swf";
  61.             else if (i==11)
  62.         window.parent.document.getElementById('V1').movie = "flv/lm-logo.swf";
  63.             else if (i==12)
  64.         window.parent.document.getElementById('V1').movie = "flv/sports.swf";
  65. }
  66.  
  67. </script>
  68.  
  69.  
  70.  
  71.  
  72. <style type="text/css">
  73. <!--
  74. body {
  75.     background-color: #FFFFFF;
  76. }
  77. -->
  78. </style></head>
  79.  
  80.  
[HTML]<body onload="MM_preloadImages('images/about-us-over.gif','images/watch-hover.png','images/contribute-hover.png')">
<table width="380" height="136" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="about-content">

<tr align="left">
<td colspan="4" style="padding-left:5px;"><img src="images/audience_01.gif" width="106" height="25" /></td>
</tr>
<tr>
<td colspan="4" valign="top" ></td>
</tr>
<tr>
<td colspan="4" valign="top" class="about-content" style="padding-right:5px; padding-left:5px"><p align="justify">LiveMedia is pioneering a new genre of content which is designed keeping in mind the changing lifestyle and media consumption habits of it target audience. The content is well researched and structured to ensure that it is well observed, absorbed and enjoyed by its viewers.</p>
<p align="justify">We currently run over 13 different branded programs as <br />
follows :<br />
</p></td>
</tr>

<tr>
<td width="17" align="center" valign="top" >&bull;</td>
<td width="87" valign="top"><strong>Horoscope&nbsp;<br />
Live</strong></td>
<td width="5" valign="top"><strong>:</strong></td>
<td width="303" valign="top">Gives you your weekly star sign forecast</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/horoscope-live.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image32','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(2);" src="images/watch.png" name="Image32" width="58" height="16" border="0" id="Image32" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image4','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image4" width="86" height="16" border="0" id="Image4" /></a></td>
</tr>

</table></td>
</tr>
<tr>
<td colspan="4" align="center">&nbsp;</td>
</tr>
<tr>
<td width="17" align="center" valign="top">&bull;</td>
<td align="left" valign="top"><strong>Kitty &amp;Witty<br />
Live</strong></td>
<td align="left" valign="top"><strong>:</strong></td>
<td align="left">A clever rendition of poor jokes through animation</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/Kitty-witty.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image321','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(3);" src="images/watch.png" name="Image321" width="58" height="16" border="0" id="Image321" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image42','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image42" width="86" height="16" border="0" id="Image42" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top" >&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Mr. Wise</strong></td>
<td valign="top"><strong>:</strong></td>
<td valign="top" style="padding-right:5px;">An animated series wherein MR. Wise shares his wisdom</td>
</tr>

<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/Mr.wise.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image322','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(4);" src="images/watch.png" name="Image322" width="58" height="16" border="0" id="Image322" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image41','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image41" width="86" height="16" border="0" id="Image41" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Make&nbsp;My&nbsp;<br />
Word</strong></td>
<td valign="top"><strong>:</strong></td>
<td valign="top" style="padding-right:5px;">An involving program that engages you in solving a scrabble</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;">&nbsp;</td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image323','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(5);" src="images/watch.png" name="Image323" width="58" height="16" border="0" id="Image323" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image43','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image43" width="86" height="16" border="0" id="Image43" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Health Live</strong></td>
<td valign="top"><strong>:</strong></td>
<td valign="top" style="padding-right:5px;">Dr Zed gives you easy but workable health tips</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/healthlive.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image324','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(6);" src="images/watch.png" name="Image324" width="58" height="16" border="0" id="Image324" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image44','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image44" width="86" height="16" border="0" id="Image44" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Graffiti Live</strong></td>
<td valign="top">:</td>
<td valign="top" style="padding-right:5px;">Wise cracks that make you tickle</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/Graffiti-live.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image325','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(7);" src="images/watch.png" name="Image325" width="58" height="16" border="0" id="Image325" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image45','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image45" width="86" height="16" border="0" id="Image45" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Trivia Live</strong></td>
<td valign="top">:</td>
<td valign="top" style="padding-right:5px;">Amazing trivial but factual information</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/Trivia-live.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image326','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(8);" src="images/watch.png" name="Image326" width="58" height="16" border="0" id="Image326" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image46','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image46" width="86" height="16" border="0" id="Image46" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Fashion Live</strong></td>
<td valign="top">:</td>
<td valign="top" style="padding-right:5px;">Fashion snippets from some of the most happening designers</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/fashion-live.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image327','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(9);" src="images/watch.png" name="Image327" width="58" height="16" border="0" id="Image327" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image47','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image47" width="86" height="16" border="0" id="Image47" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>This is India</strong></td>
<td valign="top">:</td>
<td valign="top" style="padding-right:5px;">A humorous satire on the nuances of our daily lives</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/this-is-india.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image328','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(10);" src="images/watch.png" name="Image328" width="58" height="16" border="0" id="Image328" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image48','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image48" width="86" height="16" border="0" id="Image48" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top" >&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Whats Up</strong></td>
<td valign="top">:</td>
<td valign="top" style="padding-right:5px;">A round up on some unique stories from around the world</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/whats-up.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image329','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(11);" src="images/watch.png" name="Image329" width="58" height="16" border="0" id="Image329" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image49','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image49" width="86" height="16" border="0" id="Image49" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td align="right" valign="top">&bull;</td>
<td valign="top" style="padding-left:5px; padding-top:3px;"><strong>Sports<br />
Facts Live</strong></td>
<td valign="top">:</td>
<td valign="top" style="padding-right:5px;">Unique facts for Sports lovers and others alike</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" align="center" style="padding-right:40px;"><img src="images/Sports-facts.png" alt="Horoscope Live" width="63" height="50" /></td>
<td width="22%" align="right"><a style="cursor:hand;" onmouseover="MM_swapImage('Image3210','','images/watch-hover.png',1)" onmouseout="MM_swapImgRestore()"><img onclick="showflash(12);" src="images/watch.png" name="Image3210" width="58" height="16" border="0" id="Image3210" /></a></td>
<td width="45%"><a href="frmcontribute.html" target="_parent" onmouseover="MM_swapImage('Image410','','images/contribute-hover.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/contribute.png" name="Image410" width="86" height="16" border="0" id="Image410" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-top:3px;">&nbsp;</td>
</tr>
<tr>
<td colspan="4" valign="top" style="padding-left:5px; padding-right:5px;">We encourage our viewers to contribute towards our content, so if you would like to see creativity on our Screens, then please send in your&nbsp; entries by clicking the&nbsp; &ldquo;Contribute&rdquo; button alongside the various programs listed above.<br /></td>
</tr>
</table>
</body>
</html>[/HTML]


Code of Master Page where iFrame called


[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:::Live Media:::</title>
<link href="style/live-media.css" type="text/css" rel="stylesheet" />
<script type="text/JavaScript">
<!--
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 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_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_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];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('images/sample-list-partners-hover.gif','images/sample-installation-hover.gif','images/partners-inner-hover.gif','images/advertisers-nav-inner-hover.gif','images/list-of-partner-hover.png','images/sample-installation-hover.png','images/sample-installation-heading.gif')">
<table width="1002" border="0" cellspacing="0" cellpadding="0" align="center" class="main-container-inner">
<tr>
<td height="548" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="logo" width="50%"><img src="images/live-media-logo.gif" width="288" height="37" alt="Live Media Logo" /></td>
<td width="50%" align="right" valign="bottom" class="main-nav"><a href="index.html">Home</a> | <a href="about-us.html">About Us</a> | <a href="feedback.html">Feedback</a>| <a href="contact-us.html">Contact Us</a></td>
</tr>
</table>

<table width="100%" height="456" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="21%" valign="top" class="main-content"><table width="91%" border="0" cellspacing="0" cellpadding="0">

<tr>
<td><a href="partners.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','images/partners-inner-hover.gif',1)"><img src="images/partners-inner.gif" name="Image10" width="211" height="36" border="0" id="Image10" /></a></td>
</tr>
<tr>
<td><a href="advertisers.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','images/advertisers-nav-inner-hover.gif',1)"><img src="images/advertisers-nav-inner.gif" name="Image11" width="211" height="34" border="0" id="Image11" /></a></td>
</tr>
<tr>
<td><a href="#"><img src="images/audience-nav-inner-hover.gif" width="211" height="36" border="0" /></a></td>
</tr>
</table></td>
<td width="45%" align="left" valign="top" class="main-content"><iframe height="250" name="main" align="center" width="400" frameborder="0" src="audienceframe.html"
scrolling="Yes" style="overflow-x:hidden;"marginheight="0" marginwidth="0" vspace="0" hspace="0"></iframe></td>
<td width="34%" align="left" valign="top">


<object id="V1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="370" height="352">
<param name="movie" value="flash/Live-Media-sks.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />

<embed src="flash/Live-Media-sks.swf" wmode="opace" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="370" height="352">
</embed>
</object>




</td>
</tr>
</table>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="228" height="26">&nbsp;</td>
<td width="304" align="right"><a href="listofpartner.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image101','','images/list-of-partner-hover.png',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/sample-list-partners-hover.gif',1)"></a></td>
<td width="172" align="right"><a href="sample-installation.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','images/sample-installation-hover.png',1)"></a><a href="sample-installation.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','images/sample-installation-heading.gif',1)"></a><a href="installation.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/sample-installation-hover.gif',1)"></a></td>
<td width="142" align="right">&nbsp;</td>
<td width="156" align="right">&nbsp;</td>
</tr>
<tr>
<td height="49" colspan="4">&nbsp;</td>
<td align="right" valign="bottom" class="main-nav-site" style="padding-top:3px;"><a href="site-map.html">Site Map</a></td>
</tr>
</table></td>
</tr>

</table></td>
</tr>
</table>

</body>
</html>
[/HTML]

Bold mark used elements of JS
Jul 9 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
The V1 element doesn't have a movie attribute. It's the param which has the attribute. You could give the param element an id and change its value.

PS. the link is down

PPS. please use code tags.
Jul 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Dave Blair | last post by:
Hi, I have a problem with our intranet, we are planning to install Firefox instead of Internet Explorer onto some new PCs. However, we can't get the following JavaScript to work in Firefox and...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
7
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script...
13
by: David Golightly | last post by:
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and messing around with it in the console, working through some of the exercises given at...
8
by: Frank | last post by:
Hi, I am working with VS.NET 2005 Ultimately, I wish to call a JavaScript function from a .js file
1
by: nitinp | last post by:
hello, I am trying to validate empty textbox value by javascript in Firefox. It is working fine in IE but not in Firefox. Note - code is for ASP.NET <script runat="server"> protected void...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
2
by: barrymars | last post by:
First posting here so bear with me. i'm working on a double tabbed menu system for a web aplpication, where the first row of 'divs' control visibility of the second row of 'divs'. It all works...
1
by: web20tester | last post by:
Hi all, I am new to javascript. I have this script working fine in IE but cannot work in firefox. Really appreciate on any guidance. search0.js function Search(str) { var...
3
by: safiratec | last post by:
Hi, I want to show a div depending of the value of a <select> option, using 2 functions hidediv() and showdiv() - it is working fine in firefox, but not in IE (tested with IE 6 and 7). <body...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.