display = 'none'
and display = ''. Those will work fine.
quote:
Originally posted by Ezra
function spoiler(){
'if(document.getElementById(spoiler).style.display = 'hide'){
document.getElementById(spoiler).style.display = 'block';
'else{
'document.getelementbyid(spoiler).style.display = 'hide';
}
}
should be
code:
function spoiler(){
if(document.getElementById('spoiler').style.display == 'none'){
document.getElementById('spoiler').style.display = '';
else{
document.getElementById('spoiler').style.display = 'none';
}
}