Hello,
I am simply trying to get this stupid thing to toggle on and off. Can anyone tell me why this code is not working? It is only running the code in the IF, not the ELSE.
function showHidePup(pupUrl, pupTitle)
{
if($('#boxPup').toggle(false))
{
alert("I'm in the IF");
$('#boxPup').toggle(true);
var flashvars = {};
var params = {};
params.quality = "low";
var attributes = {};
swfobject.embedSWF("pop_up.swf", "popUpDiv", "700", "520", "9.0.0", false, flashvars);//, params, attributes
}
else if($('#boxPup').toggle(true))
{
alert("I'm in the ELSE");
$('#boxPup').toggle(false);
}