What is wrong with my code
Posted: Sun Jun 14, 2009 2:06 pm
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
This is my code, i am trying to have user view the product content even if they did not log in, but it does not work. The only time you are able to view the product content is when you log in. How should i correct this?
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
This is my code, i am trying to have user view the product content even if they did not log in, but it does not work. The only time you are able to view the product content is when you log in. How should i correct this?