Page 1 of 1

What is wrong with my code

Posted: Sun Jun 14, 2009 2:06 pm
by gaddyf
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?

Re: What is wrong with my code

Posted: Sun Jun 14, 2009 3:58 pm
by Mark Baker
Your code is javascript, and is related to showing and hiding elements on the page. It has nothing to do with logging in, nor with PHP.