Jump to content

Web Development Question


Hitman247m

Recommended Posts

How do you create so many seperate pages (on this site) while carrying the formatting over (ie: structure, images, nav bar)? Do you create a seperate HTML page for each page, or is there an easier way to do it.

 

 

 

I'm asking this question because if you create a site with many HTML pages by themselves, it would be a major pain if you had to change one problem that carryed over onto each seperate page (ie: dead link in the nav bar) :| It would take forever and make expanding your site extremely hard.

 

 

 

If someone could please help me out here, it would be great :D

Hitman247m.png
Link to comment
Share on other sites

Theres many methods of doing this actually, google "web structure" i belive thats what taught me how to do it.

 

 

 

But i would try to avoid using frames if i was you.

yourmysin.jpeg

Current Goals

80/80 Fletching

60/75 Woodcutting

97/100 Combat

Link to comment
Share on other sites

It actually just depending on how you are writing the pages.

 

 

 

If you are using basic HTML only , then yes , unfortunately you would have to make duplicates and just edit in the content that you want to appear on each specific page.

 

 

 

But take RuneTips for instance , the whole site is written using PHP and the whole site(pretty much) is driven completely from the index.php , and the pages containing the content we want to display are included dynamically, keeping the default "structure" of the page intact.

I like to fart silently but deadly in movie theaters
Ard Choille says (11:41 PM):

I wouldn't dare tell you what to do m'dear

Link to comment
Share on other sites

Using a base php page is one of the best ways to maintain a template. However, some programs like Dreamweaver (and I hate to say it, but Frontpage) allow you to implement "templates." These put the main banners, menus, etc into EVERY page, but they "lock" template areas so that

 

1. You can't accidently change any of the template area. and

 

2. It will ALL be updated when you update the template.

 

 

 

The template lets you lay out your page and then specify editable areas which will hold the differences from page to page. Then you can simply update the template, and all of its child pages get updated.

 

 

 

But if you have the time and ability to study php, you'll be better off. You're usually best to combine it with a simple database to store the location of different content.

Link to comment
Share on other sites

Css works just as good as html in most cases. And in my opnion it gives you more flexibility in your webpages as well as better organization.

 

 

 

True, but you can't use it to create dynamic content any more than you can with HTML.

IRKAa.jpg
Link to comment
Share on other sites

 

 

 

Also; I get 100 megs per MySQL database, is that enough?

 

 

 

For a starter site , that is WAY more then enough.

I like to fart silently but deadly in movie theaters
Ard Choille says (11:41 PM):

I wouldn't dare tell you what to do m'dear

Link to comment
Share on other sites

try iframes if no one else suggested that already.
As much as I like you, say that again and I'll have to cut off your hands.

 

 

 

iframes = teh devil (along with frames, in-line styles and such bad html practices) :P

Link to comment
Share on other sites

try iframes if no one else suggested that already.
As much as I like you, say that again and I'll have to cut off your hands.

 

 

 

iframes = teh devil (along with frames, in-line styles and such bad html practices) :P

 

 

 

I second that -

 

 

 

Don't use iFrames, or you will be publically flogged by all the "cool" web-developers. ;P

IRKAa.jpg
Link to comment
Share on other sites

Buy a book about php. You can get some decent ones for less then 20$ which will help you alot more then tutorials will.

 

 

 

But before you start learning PHP make sure you have a good understanding of Html, and how variables work. Knowledge of any other languages will help to actually.

yourmysin.jpeg

Current Goals

80/80 Fletching

60/75 Woodcutting

97/100 Combat

Link to comment
Share on other sites

Dude whoev said css, do u know wat css is? Its for setting the style for specific items on the page, such as changing the scrollbar, heres my fav one. I just typed it out yesterday :D

 

BODY {

 

scrollbar-face-color : #000000;

 

scrollbar-highlight-color : #32CD32;

 

scrollbar-3dlight-color : #FF0000;

 

scrollbar-darkshadow-color : #008000;

 

scrollbar-arrow-color : #FFFFFF;

 

scrollbar-shadow-color : #00FF00;

 

scrollbar-track-color: #FFFFFF;

 

}

 

 

 

~The superdumb kid who learned and mastered html 4.01 and css in 2 days

siggievroom.gif

siggiez.gif

Thank you everybody for rising up against macroing!!!

Link to comment
Share on other sites

replace mastered with "fooling IE into doing almost what you want while making invalid code for other browsers"

612d9da508.png

Mercifull.png

Mercifull <3 Suzi

"We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.