Go Back   Free website templates > Web Template Help > HTML - XHTML - CSS
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to share free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2007, 04:59 AM
Junior Member
 
Join Date: Jul 2007
Posts: 5
TemplateUser is on a distinguished road
Default Adding Menus to CSS?

Is there a way you can add a menu to a CSS? I really hate going into each individual page and editing it and making it something else. If there is could someone tell me?
Reply With Quote
  #2 (permalink)  
Old 07-17-2007, 09:02 AM
Senior Member
 
Join Date: May 2006
Location: Australia
Posts: 592
Scoooooty is on a distinguished road
Default

Yer thats a big problem with just basic html templates, you have to go through each page updating links ect when you make changes.

One way of doing it is to use an "include" command which just loads a section onto you page from an external file, this way you can just edit the 1 external file to make changes to the whole website.

Here is a tutorial http://www.tizag.com/phpT/include.php

Its good for menus
__________________
www.tutocity.com - Free Templates and Tutorials -
Web Design melbourne
Reply With Quote
  #3 (permalink)  
Old 07-17-2007, 10:29 PM
Junior Member
 
Join Date: Jul 2007
Posts: 5
TemplateUser is on a distinguished road
Default

THANK YOU SO MUCH! That's what I've been looking for for like A BILLION YEARS! Thanks! I really REALLY appreciate this You're my best friend forever.
Reply With Quote
  #4 (permalink)  
Old 07-29-2007, 10:04 PM
Junior Member
 
Join Date: Jul 2007
Posts: 3
mcironlung is on a distinguished road
Default

So when using .php files you have to do something with SQL or MySQL right? Or can the .php files just be uploaded like html? I just wrote a post today about having a latest news section update on everypage without editing each .html page (which is tedious). This appears to be the solution, so far.

Thanks.
Reply With Quote
  #5 (permalink)  
Old 09-24-2007, 12:40 AM
Junior Member
 
Join Date: Sep 2007
Posts: 12
kalnera is on a distinguished road
Talking java code

You can also use the java code to do the same thing. It is a little bit more difficult but it works just fine


where you want to add the text or links add this code to html page

<script language="JavaScript" src="http://www.yourwebsite.com/file.js"></script>

than create java file named file.js with following text in it

document.write('the code or text you want to appear on each page');

of course, file does not have to be named file.js. It can have any name you want it to have as long as it is reflected in the code you place on the html page.

I hope this helps
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:42 AM.



mouseover mouseover mouseover