Help to make some basic changes

  • jokerper
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 20, 2011
  • Posts: 19
  • Status: Offline

Post January 10th, 2012, 2:11 pm

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?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 10th, 2012, 2:11 pm

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post January 12th, 2012, 6:29 pm

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;
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • jokerper
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 20, 2011
  • Posts: 19
  • Status: Offline

Post January 17th, 2012, 2:57 pm

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 242 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.