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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -