framelocation.js is a tiny script with no external dependencies that makes it possible to display useful (if slightly ugly) URLs when loading a website within a frame from another website.
- Edit framelocation.js and update frameRoot to be "http://my.cheap.host/~user" (NB: no trailing slash).
- Update framesetDomain to be "http://snazzydomain.com".
- Put your edited version of framelocation.js somewhere web-accessible.
<script src="/path/to/framelocation.js"></script>to the bottom of each framed page's
At this point, when you visit a page on your site through a frame at http://snazzydomain.com/, the hash part of the URL will update to reflect your location.
If you also have access to the frameset page at http://snazzydomain.com, you can also have the URLs serve as permanent links to particular framed locations. Add
<script src="/path/to/framelocation.js"></script> to the
<head> of the frameset page, and someone directly visiting http://snazzydomain.com/#/some/page.html will immediately see http://my.cheap.host/~user/some/page.html.