Veit einhver hvernig hann er gerður?
Hafið þið rekist á kóða á netinu sem gerir eitthvað sambærilegt?
Kærar þakkir.
“True words are never spoken”
<html> <head> <script> function showhide(id){ if (document.getElementById){ obj = document.getElementById(id); if (obj.style.display == "none"){ obj.style.display = ""; } else { obj.style.display = "none"; } } } </script> </head> <body> <a href="#" onclick="showhide('1'); return(false);">Show 1</a>, <a href="#" onclick="showhide('2'); return(false);">Show 2</a>, <a href="#" onclick="showhide('3'); return(false);">Show 3</a>, <a href="#" onclick="showhide('4'); return(false);">Show 4</a>. <div id="1" style="display: none;">One.</div> <div id="2" style="display: none;">Two.</div> <div id="3" style="display: none;">Three.</div> <div id="4" style="display: none;">Four.</div> </body></html>