• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Looking For Someone Who Knows Javascript


jrolson    45

I have a forum with categories that hide/expand with a click of an image using Javascript.

But I need to add cookie support to remember if they are hidden or expanded so im looking for someone who knows how to add this function into the current code.

Here is the current code,


function hide(id) { document.getElementById(id).style.display="none"; }
function show(id) { document.getElementById(id).style.display="block"; }
function layerTest(id) {
	  if ( document.getElementById(id).style.display == 'none' ) {
		  } else {


<a href="#" onclick="layerTest('expand{forumrow.FORUM_ID}')"><img src="{T_THEME_PATH}/images/expand.gif" alt="" /></a>

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.