Not Solved javascript help please
#1
Not Solved
if (navigator.userAgent.indexOf("Safari") > 0)
{
  isSafari = true;
  isMoz = false;
  isIE = false;
}
else if (navigator.product == "Gecko")
{
  isSafari = false;
  isMoz = true;
  isIE = false;
}
else
{
  isSafari = false;
  isMoz = false;
  isIE = true;
}

function attachListener(element, type, listener)
{
	if(element.addEventListener)
	{
		element.addEventListener(type, listener, false);
	}
	else
	{
		element.attachEvent("on"+type, listener, false);
	}
}

function removeListener(element, type, listener)
{
	if(element.removeEventListener)
	{
		element.removeEventListener(type, listener, false);
	}
	else
	{
		element.detachEvent("on"+type, listener);
	}
}

function eventElement(event)
{
  if(isMoz)
  {
    return event.currentTarget;
  }
  else
  {
    return event.srcElement;
  }
}

function offsetTop(element)
{
	var top = element.offsetTop;
	while(element = element.offsetParent)
	{
		top += element.offsetTop;
	}
	return top;
}

function offsetLeft(element)
{
	var left = element.offsetLeft;
	while((element = element.offsetParent))
	{
		left += element.offsetLeft;
	}
	return left;
}

i am currently using this jscript to open popup windows in mybb for a theme i am working on ...can someone make any changes to this so that the pulldown effect has a fade in effect....

thank you
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
Reply


Messages In This Thread
javascript help please - by Jitendra M - 2008-04-11, 12:03 PM
RE: javascript help please - by Yumi - 2008-04-13, 12:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)