Guest User

CreateDriver.html

a guest
May 17th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <html>
  2. <head>
  3. <link rel="shortcut icon" id="favicon" type="image/x-icon" href="://static.mobilize.biz/config/favicon.ico">
  4. <title>Loading...</title>
  5.  
  6. <script>
  7. function setCurrentPage(URL)
  8. {
  9. document.cookie = "LASTURL=" + URL;
  10. }
  11. function getLastPage() {
  12. var dc = document.cookie;
  13. var prefix = "LASTURL" + "=";
  14. var begin = dc.indexOf("; " + prefix);
  15. if (begin == -1) {
  16. begin = dc.indexOf(prefix);
  17. if (begin != 0) return null;
  18. } else
  19. begin += 2;
  20. var end = document.cookie.indexOf(";", begin);
  21. if (end == -1)
  22. end = dc.length;
  23. return unescape(dc.substring(begin + prefix.length, end));
  24. }
  25. function loadContent(defaultLocation) {
  26. // to get refreshes to work
  27. if(getLastPage())
  28. {
  29. //document.title = "Debug has last page";
  30. document.getElementById('contentFrame').src = getLastPage();
  31. } else {
  32. document.getElementById('contentFrame').src = defaultLocation;
  33. }
  34. }
  35. </script>
  36. </head>
  37.  
  38. <FRAMESET rows="0%,*" framespacing="0" border="0" frameborder="0" onLoad="loadContent('/home')">
  39. <FRAME id="modelFrame" name="modelFrame" src="/model.html">
  40. <FRAME id="contentFrame" name="contentFrame" src="">
  41. </FRAMESET>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment