Hello there,
first my code:
Code:function show_hide (id) { for (i = 1;i<=25;i++) { if (i == id) { if (document.getElementById(id).style.visibility == "hidden") { document.getElementById(id).style.visibility = "visible"; document.getElementById(id).style.overflow = "visible"; document.getElementById(id).style.height = "100%"; document.getElementById(id).style.width = "100%"; } else { document.getElementById(id).style.visibility = "hidden"; document.getElementById(id).style.overflow = "hidden"; document.getElementById(id).style.height = "1px"; document.getElementById(id).style.width = "1px"; } } else { document.getElementById(i).style.visibility = "hidden"; document.getElementById(i).style.overflow = "hidden"; document.getElementById(i).style.height = "1px"; document.getElementById(i).style.width = "1px"; } } }
My problem is that I am getting a javascript error which says ‘Object required’ and to be honest I am not sure what the problem is ….






Bookmarks