What is wrong with my code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gaddyf
Forum Newbie
Posts: 14
Joined: Sat Jun 13, 2009 10:09 pm

What is wrong with my code

Post 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?
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: What is wrong with my code

Post 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.
Post Reply