sukimedia
01-21-2009, 11:44 PM
1) Script Title: Chrome CSS Drop Down Menu (v2.5)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm
3) Describe problem:
when running this script in visual studio 2008 i receive the following error:
A Runtime Error has occurred.
Do you wish to Debug?
Line: 165
Error: Object required
here is what the code looks like at this location:
164 addEvent:function(target, functionref, tasktype){
165 if (target.addEventListener)
166 target.addEventListener(tasktype, functionref, false);
167 else if (target.attachEvent)
168 target.attachEvent('on'+tasktype, function(){returnfunctionref.call(target, window.event)});
169},
i'm pretty new to Java script...any help is greatly appreciated
thx
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm
3) Describe problem:
when running this script in visual studio 2008 i receive the following error:
A Runtime Error has occurred.
Do you wish to Debug?
Line: 165
Error: Object required
here is what the code looks like at this location:
164 addEvent:function(target, functionref, tasktype){
165 if (target.addEventListener)
166 target.addEventListener(tasktype, functionref, false);
167 else if (target.attachEvent)
168 target.attachEvent('on'+tasktype, function(){returnfunctionref.call(target, window.event)});
169},
i'm pretty new to Java script...any help is greatly appreciated
thx