is the JSFX_FloatTopLeft() closed properly?  looks like there should
be a closing curly brace after line 7?  or is that it on line 25?

On 6/22/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> I'm using a borrowed script to make a button float. It works but throws an
> error. Which would be irrelevant except that it messes with some kind of
> monitoring software that's being used.
>
>
>
> Anyways here's the code:
>
>
>
> //floating image script
>
> 2function JSFX_FloatTopLeft()
>
> 3{
>
> 4 var startX = 670, startY = 250;
>
> 5 var ns = (navigator.appName.indexOf("Netscape") != -1);
>
> 6 var d = document;
>
> 7 var px = document.layers ? "" : "px";
>
> 8 function ml(id)
>
> 9 {
>
> 10 var
> el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
>
> 11 if(d.layers)el.style=el;
>
> 12 el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
>
> 13 el.x = startX; el.y = startY;
>
> 14 return el;
>
> 15 }
>
> 16 window.stayTopLeft=function()
>
> 17 {
>
> 18 var pY = ns ? pageYOffset : document.documentElement &&
> document.documentElement.scrollTop ? document.documentElement.scrollTop :
> document.body.scrollTop;
>
> 19 ftlObj.y += (pY + startY - ftlObj.y)/8;
>
> 20 ftlObj.sP(ftlObj.x, ftlObj.y);
>
> 21 setTimeout("stayTopLeft()", 40);
>
> 22 }
>
> 23 ftlObj = ml("advsSearchButton");
>
> 24 stayTopLeft();
>
> 25}
>
> 26JSFX_FloatTopLeft();
>
> 27
>
> 28//end float script
>
> 29
>
>
>
> Firebug reports an error that "el has no properties" in line 12, this messes
> with the monitoring software
>
>
>
> Any ideas?
>
>
>
> --
>
> Scott Stewart
>
> ColdFusion Developer
>
>
>
> SSTWebworks
>
> 7241 Jillspring Ct.
>
> Springfield, Va. 22152
>
> (703) 220-2835
>
>
>
> http://www.sstwebworks.com
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:237052
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to