News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Setting cookie

Started by diplomat., May 26, 2005, 10:25:08 PM

Previous topic - Next topic

diplomat.

I found a javascript that will collapse table rows. this is the code:


<script type="text/javascript">

function showhide(){

if(document.all.row1.style.display == 'none'){
document.all.row1.style.display ='';
}
else{
document.all.row1.style.display ='none';
}

return false;

}

</script>


http://www.titaniumwg.com/test.php

im testing it on my test page and it works, but it doesnt set a cookie obviously. i have no clue how to edit it to cookie when someone collapse a row, it stays collapsed and when its expanded. how could it do this?
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

[Unknown]

Using the Simple Machines site theme here, go to the board index and view its source.  Search for "document.cookie".  There's a few instances.

-[Unknown]

Saleh


We don't need a reason to help people

Advertisement: