Hehe I don't know why pop-up would be a good idea... but its suitable for tool tips and such. But anyways all you have to do is make two files. Called newpage.php and data.php.
Paste this javascript code before the </head> tag:
Code:
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width=150');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Now in the newpage.php generate your file list, and those links. But change those links to something like:
Code:
<a href='javascript:void(null);' onclick="popitup('data.php?id={$data['x']}')">Page Title</a>
What will happen is the little javascript will open data.php file with that id parameter in a pop-up window
.
In the URL code i assume $data['x'] is a variable from the db.
Bookmarks