javascript - How to place a banner on one page which reflect on the rest of the pages automatically? -
i have banner in div , place on home page automatically reflects on rest of pages?? possible ?? without placing code on each page ??.
any appreciate :)
if you're using php, can write whole banner in html, save .php (e.g. banner.php). somewhere before content of each of pages, use php's include
keyword
for each of page can write way:
<body> <div id='banner'> <?php include "/path/to/banner.php"; ?> </div> <div id='content'> <!-- main content here --> </div> </body>
Comments
Post a Comment