|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Stylesheet instate Frames
Hi all :-)
i have a web application using DHTML menus (hiermenu). i do not want to use frames. i want to use stylesheets but i don't know how to do it. for example: when i select a link in my menu , i want to become it on the same page but i want that the menus stay unchanged in the top of the page(HOME). do any one has some ideas? thanks sylvano |
|
#2
|
|||
|
|||
|
how I would do it
okay so there a re a few ways that I can think of to do this.
1.The best way, in my opinion, would be with php. I like php. You can make an idnex.php page and use includes like this: <?php if ( isset( $_GET['page'] ) ) { switch( $_GET['page'] ) { case 'usercomments'; include("profiles/usercomments.php"); break; } } ?> Doing this in <div's>, which can be done with a stylesheet, or just in the page, can let you define different areas by passing $page through the url. 2.Php may not be the most practical solution though. So without frames, try inline frames, or <iframes>. This can be done this way: <iframe></iframe> you can find specifications for this at: htmlhelp.com There are probably better resources but I just thought of this first. With inline frames, you can specify smaller pages to be set in bigger pages; it's much like the php include function. Aside ffrom those two, I don't many others. Anyone else wants to add, or correct me, have at it. Hope this wasn't too lengthy.
__________________
hey it's the CHARKING |
|
#3
|
|||
|
|||
|
Stylesheet instate Frames
tanks for your help , i will try and say you if it works
sylvano |
|
#4
|
||||
|
||||
|
What I do is I set up my stlye sheet with classes.
Code:
.navigation
{
postion: absolute;
top: 1px;
left: 1px;
width: 50px;
height: 50px;
}
.content
{
postion: absolute;
top: 1px;
left: 51px;
width: 500px;
height: 500px;
}
Save the stylsheet as css file(filename.css) Then in my page Code:
<html> <head> <title>Title</title> <link rel="stylesheet" type="text/css" href="filename.css" /> </head> <body> <div class="navigation"> <!-- This is your navigation area --> </div> <div class="content"> <!-- This is where your content goes --> </div> </body> </html>
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#5
|
|||
|
|||
|
oh yah, duh. even asked for style sheet. thanks for adding that. THAT is the best way.
|
|
#6
|
|||
|
|||
|
Stylesheet instate Frames
hi thank you for u're help
it works now. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Stylesheet instate Frames |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|