jquery - Bring in HTML from a separate file -
i have site changes content of page when hover on navigation links: http://www.dolphinbeams.com/
basically divs on 1 page , use jquery display them necessary. however, ensure compatibility non-javascript browsers, have created separate html files each of pages.
each page has same body content, different body id , title. i'm wondering if there's easy way can have body content in separate file (for editing), bring in pages. simplest way achieve this?
keep in mind don't know php, though i'd consider if it's easiest way. i'd ensure content still visible in case javascript disabled.
rename index html .php.
add line want page display:
<? include("contentfile.html"); ?>
no other php knowledge required.
for example have divs appear , disappear. might this:
<div id="content1"> <? include("content1.html"); ?> </div> <div id="content2"> <? include("content2.html"); ?> </div> ...
Comments
Post a Comment