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?
What is wrong with my code
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: What is wrong with my code
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.