Jump to content

Iframe style but different


seba4
 Share

Recommended Posts

First sorry for my bad english and i hope that i dont write in wrong topic - CSS The thing is that i am making page with css and in the middle of the page there is space that is in different <div> named = middlebar . All i want is to make same same effect like i can do with iframe, that means i want all arround that middlebar stable and it wont change, informations needs to change only in middlebar- different button different informations- textIf you dont understand just write and i will try to write it down on some other way

Link to comment
Share on other sites

You could use html dom.example:

<script type="javascript/text">function swapContent() {document.gotElementById("middlebar").innerHTML="Different Content";}</script><a href="java script: swapContent()">Click here to swap content</a><div id="middlebar">Content!</div>

That should work, when you press the button it changes the content inside the div to "Different content".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...