AmyL
04-07-2010, 04:22 PM
1) Script Title: Drop down/ Overlapping Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm
3) Describe problem: I have this script installed and it's working well on FF, but on IE, I get this error:
Line: 116
Error: 'null' is null or not an object
I applied the fix as indicated on this forum post: http://www.dynamicdrive.com/forums/showthread.php?t=52146&highlight=drop+Overlapping+Content+script
By doing this...
Old code:
114 init:function(anchorid, pos, glidetime, revealbehavior){
115 var anchorobj=document.getElementById(anchorid)
116 var subobj=document.getElementById(anchorobj.getAttribute("rel"))
117 var subobjsource=anchorobj.getAttribute("rev")
118 if (subobjsource!=null && subobjsource!="")
119 this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
120 subobj.dropposition=pos.split("-")
121 subobj.glidetime=glidetime || 1000
122 subobj.style.left=subobj.style.top=0
New code:
114 init:function(anchorid, pos, glidetime, revealbehavior){
115 var anchorobj=document.getElementById(anchorid)
116 var subobj=document.getElementById(anchorobj.getAttribute("rel"))
117 if (!anchorobj || !subobj)
118 return
119 var subobjsource=anchorobj.getAttribute("rev")
120 if (subobjsource!=null && subobjsource!="")
121 this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
122 subobj.dropposition=pos.split("-")
123 subobj.glidetime=glidetime || 1000
124 subobj.style.left=subobj.style.top=0
But I'm still getting the error.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm
3) Describe problem: I have this script installed and it's working well on FF, but on IE, I get this error:
Line: 116
Error: 'null' is null or not an object
I applied the fix as indicated on this forum post: http://www.dynamicdrive.com/forums/showthread.php?t=52146&highlight=drop+Overlapping+Content+script
By doing this...
Old code:
114 init:function(anchorid, pos, glidetime, revealbehavior){
115 var anchorobj=document.getElementById(anchorid)
116 var subobj=document.getElementById(anchorobj.getAttribute("rel"))
117 var subobjsource=anchorobj.getAttribute("rev")
118 if (subobjsource!=null && subobjsource!="")
119 this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
120 subobj.dropposition=pos.split("-")
121 subobj.glidetime=glidetime || 1000
122 subobj.style.left=subobj.style.top=0
New code:
114 init:function(anchorid, pos, glidetime, revealbehavior){
115 var anchorobj=document.getElementById(anchorid)
116 var subobj=document.getElementById(anchorobj.getAttribute("rel"))
117 if (!anchorobj || !subobj)
118 return
119 var subobjsource=anchorobj.getAttribute("rev")
120 if (subobjsource!=null && subobjsource!="")
121 this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
122 subobj.dropposition=pos.split("-")
123 subobj.glidetime=glidetime || 1000
124 subobj.style.left=subobj.style.top=0
But I'm still getting the error.