473,513 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

run time error: object required using javascript on line 21

1 New Member
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript">
  2. function mmLoadMenus() {
  3.   if (window.mm_menu_0405153337_0) return;
  4.     window.mm_menu_0405153337_0 = new Menu("root",120,20,"tahoma",11,"#FFFFFF","#000000","#999B8A","#C9BEBC","left","middle",3,1,100,-5,7,true,false,true,0,false,false);
  5.   mm_menu_0405153337_0.addMenuItem("Vegetables","location='vegetables/vegetables.html'");
  6.   mm_menu_0405153337_0.addMenuItem("Field&nbsp;Crops","location='fieldcrops/fieldcrops.html'");
  7.   mm_menu_0405153337_0.addMenuItem("Flowers","location='flowers/flowers.html'");
  8.   mm_menu_0405153337_0.addMenuItem("Tropical&nbsp;Sugarbeet","location='tropicalsugarbeet/tropicalsugerb.html'");
  9.    mm_menu_0405153337_0.hideOnMouseOut=true;
  10.    mm_menu_0405153337_0.bgColor='#555555';
  11.    mm_menu_0405153337_0.menuBorder=1;
  12.    mm_menu_0405153337_0.menuLiteBgColor='#DEDEDE';
  13.    mm_menu_0405153337_0.menuBorderBgColor='#F0DFC8';
  14.    mm_menu_0405153337_0.opacity='30%';
  15.    mm_menu_0405153337_0.writeMenus()
  16. } // mmLoadMenus()
  17.  
  18. function MM_swapImgRestore() { //v3.0
  19.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  20. }
  21.  
  22. function MM_preloadImages()
  23. { //v3.0
  24.   var d=document; if(d.images)
  25.   { 
  26.   if(!d.MM_p) d.MM_p=new Array();
  27.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  28.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  29. }
  30.  
  31. function MM_findObj(n, d) 
  32. { //v4.01
  33.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) 
  34.   {
  35.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  36.     }
  37.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  38.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  39.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  40. }
  41.  
  42. function MM_swapImage()
  43. { //v3.0
  44.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  45.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  46. }
  47. //--></script>
Aug 2 '07 #1
2 1518
gits
5,390 Recognized Expert Moderator Expert
hi ...

this is a commercial dreamweaver-script ... i assume you payed for the software and therefore i think you should ask their support for help ... i think i don't want to do the job of somebody who will be usally payed for the same answer and who is already payed by you as you payed for that application.

please try to understand that ... if you would have problems with your own code i would be glad to help you out in any way but when you use commercial software you have to get the support with it.

consider the following scenario: as i would be able (and i am so ;) ) to do some customizing tasks in SAP ... i would never do that for free ... because there are consultants or a hotline that is responsible for that ... you have to hire a consultant or pay for support or get an update of the software to fix any problem ... it is their business and not mine ;) ... and consider the responsibility with that: imagine i tell you to do something with that commercial things ... and i give you an wrong answer ... your project is killed with that ... and you cannot longer rely on any warranties you may get out of the commercial license ...

as you see ... it is not the time or the will to help you (its a long post ;) ) with the problem ... it is a simple principle that i'm following with that. may be somebody of the other guys don't think so and is kindly helping you with that ... so i would recommend to ask the macromedia-support for assistance ... and perhaps you will get an answer here too.

kind regards
Aug 2 '07 #2
vee10
141 New Member
Hi,

Can u post the remaining part of ur code so that it will be easy to identify.

-regards
Aug 2 '07 #3

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

Similar topics

3
11444
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select 'City' then you select 'Business Category' - now when you select 'Business Category' the next drop-down menu (business sub category) should populate...
1
3730
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
2
1348
by: Kurt Schroeder | last post by:
Still new to code behind so i'm not sure what the problem is (i'm using visualStudio.net for the first time) like my last question i'll bet this has a quick answer. thanks kes here is the error: and please for give the excessive text Object reference not set to an instance of an object. Description: An unhandled exception occurred during...
1
2514
by: Randall Parker | last post by:
Using VS 2003 and Cassini web server. I'm new to ASP.Net and so this may be a dumb question. I'm getting an error where the type 'FarmLand.WebForm1' is not found. The Codebehind C# source file declares a namespace of FarmLand and a class of WebForm1. Does one have to restrict which namespace one uses in Codebehind forms? Maybe match the...
3
2556
by: SAL | last post by:
I am getting the following ERROR in my WebApp on line 30: Server Error in '/TestWebApp' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please...
0
7270
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7563
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7543
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5102
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3252
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.