tommu56
Elite Member
it keeps loging me out when i get it
opened debugger and pasted it below
tommu56
// =============================================================================
// vB_Popup_Menu methods
/**
* Initialize the control object
*/
vB_Popup_Menu.prototype.init_control = function(noimage)
{
this.controlobj = fetch_object(this.controlkey);
this.controlobj.state = false;
if (this.controlobj.firstChild && (this.controlobj.firstChild.tagName == 'TEXTAREA' || this.controlobj.firstChild.tagName == 'INPUT'))
{
// do nothing
}
else
{
if (!noimage && !(is_mac && is_ie))
{
var space = document.createTextNode(' ');
this.controlobj.appendChild(space);
var img = document.createElement('img');
img.src = IMGDIR_MISC + '/menu_open.gif';
img.border = 0;
img.title = '';
img.alt = '';
this.controlobj.appendChild(img);
}
this.controlobj.unselectable = true;
if (!noimage)
{
this.controlobj.style.cursor = pointer_cursor;
}
this.controlobj.onclick = vB_Popup_Events.prototype.controlobj_onclick;
this.controlobj.onmouseover = vB_Popup_Events.prototype.controlobj_onmouseover;
}
}
/**
* Init the popup menu object
*/
vB_Popup_Menu.prototype.init_menu = function()
{
this.menuobj = fetch_object(this.menuname);
if (this.menuobj && !this.menuobj.initialized)
{
this.menuobj.initialized = true;
this.menuobj.onclick = e_by_gum;
this.menuobj.style.position = 'absolute';
this.menuobj.style.zIndex = 50;
// init popup filters (ie only)
if (is_ie && !is_mac)
{
this.menuobj.style.filter += "progid
XImageTransform.Microsoft.alpha(enabled=1,opacity=100)";
this.menuobj.style.filter += "progid
XImageTransform.Microsoft.shadow(direction=135,color=#8E8E8E,strength=3)";
}
this.init_menu_contents();
}
}
/**
* Init the popup menu contents
*/
vB_Popup_Menu.prototype.init_menu_contents = function()
{
var tds = fetch_tags(this.menuobj, 'td');
for (var i = 0; i < tds.length; i++)
{
if (tds.className == 'vbmenu_option')
{
if (tds.title && tds.title == 'nohilite')
{
// not an active cell
tds.title = '';
}
else
{
// create a reference back to the menu class
tds.controlkey = this.controlkey;
// handle mouseover / mouseout highlighting events
tds.onmouseover = vB_Popup_Events.prototype.menuoption_onmouseover;
tds.onmouseout = vB_Popup_Events.prototype.menuoption_onmouseout;
if (typeof tds.onclick == 'function')
{
// allow onclick events from <td
opened debugger and pasted it below
tommu56
// =============================================================================
// vB_Popup_Menu methods
/**
* Initialize the control object
*/
vB_Popup_Menu.prototype.init_control = function(noimage)
{
this.controlobj = fetch_object(this.controlkey);
this.controlobj.state = false;
if (this.controlobj.firstChild && (this.controlobj.firstChild.tagName == 'TEXTAREA' || this.controlobj.firstChild.tagName == 'INPUT'))
{
// do nothing
}
else
{
if (!noimage && !(is_mac && is_ie))
{
var space = document.createTextNode(' ');
this.controlobj.appendChild(space);
var img = document.createElement('img');
img.src = IMGDIR_MISC + '/menu_open.gif';
img.border = 0;
img.title = '';
img.alt = '';
this.controlobj.appendChild(img);
}
this.controlobj.unselectable = true;
if (!noimage)
{
this.controlobj.style.cursor = pointer_cursor;
}
this.controlobj.onclick = vB_Popup_Events.prototype.controlobj_onclick;
this.controlobj.onmouseover = vB_Popup_Events.prototype.controlobj_onmouseover;
}
}
/**
* Init the popup menu object
*/
vB_Popup_Menu.prototype.init_menu = function()
{
this.menuobj = fetch_object(this.menuname);
if (this.menuobj && !this.menuobj.initialized)
{
this.menuobj.initialized = true;
this.menuobj.onclick = e_by_gum;
this.menuobj.style.position = 'absolute';
this.menuobj.style.zIndex = 50;
// init popup filters (ie only)
if (is_ie && !is_mac)
{
this.menuobj.style.filter += "progid
this.menuobj.style.filter += "progid
}
this.init_menu_contents();
}
}
/**
* Init the popup menu contents
*/
vB_Popup_Menu.prototype.init_menu_contents = function()
{
var tds = fetch_tags(this.menuobj, 'td');
for (var i = 0; i < tds.length; i++)
{
if (tds.className == 'vbmenu_option')
{
if (tds.title && tds.title == 'nohilite')
{
// not an active cell
tds.title = '';
}
else
{
// create a reference back to the menu class
tds.controlkey = this.controlkey;
// handle mouseover / mouseout highlighting events
tds.onmouseover = vB_Popup_Events.prototype.menuoption_onmouseover;
tds.onmouseout = vB_Popup_Events.prototype.menuoption_onmouseout;
if (typeof tds.onclick == 'function')
{
// allow onclick events from <td