you can try using php includes for that function.
Create a file with the information/code you want to include there and name the file recent.php. On the main pages, replace the recent posts code with:
Code:
<?php include("recent.php"); ?>
name all your website pages .php rather than .html. Upload all the files to the same directory.
example:
on your main index page, have the following code:
Code:
<html>
<body>
<?php include ("recent.php")?>
<p>welcome!</p>
</body>
</html>
on your recent.php file, have the following code:
Code:
<div id="recentrecord"><img width="229" height="70" src="recentforumposts2.png" title="" alt="">
<ul>
<li>test</li>
<li>this is just a test</li>
<li>test</li>
<li>mhmm still a test<br>
</li>
<li>testomg</li></ul>
<div class="clearthis"> </div></div>
when others view your website, they will load the following source code:
Code:
<html>
<body>
<div id="recentrecord"><img width="229" height="70" src="recentforumposts2.png" title="" alt="">
<ul>
<li>test</li>
<li>this is just a test</li>
<li>test</li>
<li>mhmm still a test<br>
</li>
<li>testomg</li></ul>
<div class="clearthis"> </div></div>
<p>welcome!</p>
</body>
</html>
a full detailed tutorial on php includes can be found at:
http://www.w3schools.com/php/php_includes.asp