Not sure if this is the right forum for this but here goes.
Anyway I like to build my web site all in CSS and what I call "one page wonders" in which there is no scrolling of content and coded in such a way that even tho there are other pages it looks like you never leave the page your one. All in same position etc.. I like it, its looks clean but I want to take it a step further.
Right now I am working on a site and I have an area off to the side that is where text is going to go. Now what I want to be able to do is whenever a link is click on the nav the text changes. I have been looking around for an alternative to iframes which I don't want to use. I have been suggested to use css to achieve an iframe like situation but wonder if other content can be loaded into it, and I think it can't. So the other option was PHP and using the include or Server Side. I have used both methods in the past to gen content on my sites but unsure of how to achieve or use this in this situation. I don't write php so I don't know how having a php included can solve my problem.
Would love some enlightenment/help with my situation.
PHP Instead of Iframe?
Started by Rjupiter, Sep 27 2006 11:37 AM
1 reply to this topic
#1
Posted 27 September 2006 - 11:37 AM
#2
Posted 27 September 2006 - 02:41 PM
You could try invisible DIVs, so you'd load the text beforehand but you'd only show them when they click on the appropriate links.
<div id="content">
sahsdfkjsfhd
</div>
<a href="document.getElementById('content').style.visibility = 'hidden';">Hide</a>
<a href="document.getElementById('content').style.visibility = 'visible';">Show</a>
Edited by Lang, 27 September 2006 - 02:42 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
