User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Graphics and Multimedia section within the Web Development category of DaniWeb, a massive community of 426,806 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,838 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Graphics and Multimedia advertiser: Programming Forums

Dreaweaver CS3 Spry Question

Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,465
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Dreaweaver CS3 Spry Question

  #4  
Feb 7th, 2008
You have lot of errors in your JavaScript. I'm not specialist into JS but I highlighted the one I spoted
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">function mmLoadMenus() {
  if (window.mm_menu_1210102112_0) return;
                              window.mm_menu_1210102112_0 = new Menu("root",174,26,"Arial, Helvetica, sans-serif",11,"#CCCC66","left","middle",2,0,1000,-5,7,true,true,true,0,false,false);
  mm_menu_1210102112_0.addMenuItem("CSG","location='csg1.html'"GOOGLE"NETDEVIL"COCA-COLA"VERICEPT"AOL/MAPQUEST"GEOTECH");
   mm_menu_1210102112_0.hideOnMouseOut=true;
   mm_menu_1210102112_0.bgColor='#000000';
   mm_menu_1210102112_0.menuBorder=1;
   mm_menu_1210102112_0.menuLiteBgColor='#000000';
   mm_menu_1210102112_0.menuBorderBgColor='#CCCC99';
    window.mm_menu_1210103723_0 = new
  mm_menu_1210103723_0.addMenuItem("IRWL"HRO"BURNS&nbsp;FIGA&nbsp;WILL"BARLETT&nbsp;BECK"LITTLER&nbsp;MENDELSON");
   mm_menu_1210103723_0.hideOnMouseOut=true;
   mm_menu_1210103723_0.bgColor='#000000';
   mm_menu_1210103723_0.menuBorder=1;
   mm_menu_1210103723_0.menuLiteBgColor='#000000';
   mm_menu_1210103723_0.menuBorderBgColor='#CCCC99';
window.mm_menu_1210104341_0 = new
  mm_menu_1210104341_0.addMenuItem("HALLIBURTON"SUNCORE&nbsp;ENERGY"); //Missing double quotes somewhere there as you have in set after energy
   mm_menu_1210104341_0.hideOnMouseOut=true;
   mm_menu_1210104341_0.bgColor='#000000';
   mm_menu_1210104341_0.menuBorder=1;
   mm_menu_1210104341_0.menuLiteBgColor='#000000';
   mm_menu_1210104341_0.menuBorderBgColor='#CCCC99';
    
  mm_menu_1210104341_0.writeMenus();
}
><!--
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_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.0
  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 && document.getElementById) x=document.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];}
}
//-->
</script>
<script type="text/javascript" language="JavaScript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
</script>
<script type="text/javascript" language="JavaScript" src="mm_menu.js"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: 9pt
}
.style2 {font-size: 10px; font-style: normal; text-transform: none; color: #A69B66; font-family: Verdana, Arial, Helvetica, sans-serif;}
-->
</style>
</head>

<body bgcolor="#000000" text="#000000" onLoad="MM_preloadImages('/nav_aboutus_over.gif','/nav_corevalues_over.gif','/nav_teammembers_over.gif','/nav_spotlight_over.gif','/nav_testimonials_over.gif','/nav_contactus_over.gif')">
<script type="text/javascript" language="JavaScript1.2">mmLoadMenus();</script>

After this changes there are few things that you have to sort with embeded objects for example line 236. For more info follow errors that IE throws on you and also use Validation function in Dreamweaver File/Validate/Markup

Hope this help
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
All times are GMT -4. The time now is 7:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC