Click to See Complete Forum and Search --> : Website Help


i7alianGambino
02-05-2003, 02:54 PM
I am makin a website. I have a title area and then a sidebar on the left and right. Whenever i make a new page i need to copy and paste the oringinal code for it but when i update the side bars i need to fix each and every page. Does ne1 kno how i can get all my pages to have this 1 code and change each time i change it?

Zach Elfers
02-05-2003, 03:04 PM
You could either use frames OR write the HTML into a .js file and embed it in all the pages.

khalidali63
02-05-2003, 03:06 PM
If you have sidebar code in written in JavaScript/CSS then you need to create 2 separate files
for CSS file
sidebar.css ( may be)
and for javascript
sidebar.js

then you will only need to import these 2 files in all of the pages

for CSS import

<link rel="tylesheet" href="sidebar.css">

for JavaScript import

<script type="text/javascript" src="sidebar.js"></script>

the above should do it for you.

cheers

Khalid

i7alianGambino
02-05-2003, 03:11 PM
its all in html . and i'm sorta new to all the languages and stuff so wut do u mean by css and .js files?

Zach Elfers
02-05-2003, 03:13 PM
To write it into JS do:

document.write('your HTML line 1 here');

do that for each line in your HTML and save it as .js

i7alianGambino
02-05-2003, 03:16 PM
so everytime i have a new startin line i just put that be4 it?

i7alianGambino
02-05-2003, 07:12 PM
PLZ some1 put it in idiot language cuz i have no clue wut im doin with all this language and stuff