Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  32] [ 6]  / answers: 1 / hits: 34377  / 11 Years ago, tue, august 27, 2013, 12:00:00

I have a website which I want to have a consistent style (a header and a side menu) in every page.



I want to create something similar to a master page for it. I don't want to use frames.



How could I achieve this using HTML, CSS, JavaScript and jQuery?


More From » jquery

 Answers
2

you can use jQuery Load function to include header or menu html page, for example, to include a common header html file,



    <div id=new-header>
<script>
$(#new-header).load(header.html);
</script>
</div>

[#76101] Monday, August 26, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
samara

Total Points: 326
Total Questions: 106
Total Answers: 103

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
;