Help to make some basic changes

  • jokerper
  • Novice
  • Novice
  • User avatar
  • Posts: 22

Post 3+ Months Ago

Hi,


I know this is an old fashion to use frames and won to change the palette to css and div.


Code: [ Select ]
    <frameset frameborder="0" framespacing="0" border="0" rows="15%,*" cols="100%">
          <frame src="top.htm" name="topframe" scrolling="no" noresize>
      <frameset cols="14%,*">
        <frame src="menu.html" name="leftframe" scrolling="auto" noresize>
    <frame src="forside.html" name="indholdframe" scrolling="auto" noresize>
        
      </frameset>    
        
    </frameset>
  1.     <frameset frameborder="0" framespacing="0" border="0" rows="15%,*" cols="100%">
  2.           <frame src="top.htm" name="topframe" scrolling="no" noresize>
  3.       <frameset cols="14%,*">
  4.         <frame src="menu.html" name="leftframe" scrolling="auto" noresize>
  5.     <frame src="forside.html" name="indholdframe" scrolling="auto" noresize>
  6.         
  7.       </frameset>    
  8.         
  9.     </frameset>


How do I change to something like:

Code: [ Select ]
    <div src="top.htm" name="topframe" scrolling="no" noresize>
           <div src="menu.html" name="leftframe" scrolling="auto" noresize>
    <div src="forside.html" name="CONTENTFRAME" scrolling="auto" noresize>
        
  1.     <div src="top.htm" name="topframe" scrolling="no" noresize>
  2.            <div src="menu.html" name="leftframe" scrolling="auto" noresize>
  3.     <div src="forside.html" name="CONTENTFRAME" scrolling="auto" noresize>
  4.         


So all pages open in the "CONTENTFRAME" section?

How do I make the link and so on?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

DIV's don't work as frames and you the only way to include other files into HTML documents with HTML is by using frames.

What you need is some javascript or a server-side language like PHP to include a different file in there.

Have a read on template mechanisms... it tells you how to accomplish what you want.


If you want the DIV to scroll like a frame would by default you would add the following CSS to the CSS file to style that DIV.

CSS Code: [ Select ]
scroll: auto;
  • jokerper
  • Novice
  • Novice
  • User avatar
  • Posts: 22

Post 3+ Months Ago

Hi, bogey

Thank for your reply...

btw. Do you have a solution to my other question, see find first monday in the month.

/jokerper

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 43 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.