I think it'd be quite fun to have a dynamic .js file that document.writes your entire pag. For instance,
index.php
--------
annoyingPageCreator.js
--------
index.php
--------
code:
<script language="javascript" src="annoyingPageCreator.js?page=#PAGEID#"></script>
annoyingPageCreator.js
--------
PHP Code:
var line;
<?php
/*
Not exactly sure if this is what we'd want, but who really cares?
*/
if($_SERVER['HTTP_REFERER'] == "index.php") {
$pageSource = getSource($page);
$pageSource = addslashes($pageSource);
print("line = '" . $pageSource . "';");
}
?>
document.write(line);