Hi,
new here, and didn't code for a while, actively (back then frames where still standard and I was quite a bit younger

) - been switching to .css now that I have some coding projects again.
I am currently working on a little something for a university assignment (utterly not web design related ... am studying Outdoor & Environmental Education) - it's not even worth a lot of credits, but I want to do it nicely. I wonder if what I am trying to do is possible at all with a CSS layout, however - in any reasonable time frame. ... that is I want to be able to start adding content by tomorrow, if possible.
Here's the basic layout:
http://www.student.ljmu.ac.uk/eclchaeb/rocks/rocksv2
As I only have 750 words for a very complex topic I wanted to expand the text by additional small clickable explanations within it ... that works, obviously (and I am allowed to go up to an infinite wordcount if the main text without opened explanations doesn't exceed the 750 words.
However ... some things just will need more detail to explain - diagrams and the like. That's what I had planned to use the space on the right for. The one with "lala" in, right now. The most beautiful solution would be to load content from a different html source (to not clutter up the main html file too much) into that space when people click a link, of course, but I doubt that's possible?
http://www.student.ljmu.ac.uk/eclchaeb/rocks/rocksv3/
A not quite as elegant alternative would be to have all the divs inside the text and hiding/showing them on a click. However that'd need some expanding of the javascript I have and I am not that great at coding jscript, as is obvious from that rocksv3 example. Currently it just simply hides/shows the div it is assigned to. I guess it'd need a second variable to feed it all the divs it should change to display: none before displaying the new one.
Code:
function showhide(divId) {
var div = document.getElementById(divId);
div.style.display = (div.style.display=="block" ? "none" : "block");
}
The last alternative is, of course, to scrap the whole idea of displaying the more detailed explanations on the right and stick with the "expand text", even if that will push it apart a lot. I am not quite ready to give up yet, however.
Thanks for any answer - or just reading at all,
-Mnemon