Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. var player = window.top.GetPlayer();
  2.  
  3. var header = "Title~~"
  4. var args =(
  5. "Question 1:~~" +
  6. player.GetVar("Q1") +
  7. "~~Question 2:~~" +
  8. player.GetVar("Q2") +
  9. "~~Question 3:~~" +
  10. player.GetVar("Q3") +
  11. "~~Question 4:~~" +
  12. player.GetVar("Q4") +
  13. "~~Question 5:~~" +
  14. player.GetVar("Q5") +
  15. "~~Question 6:~~" +
  16. player.GetVar("Q6") +
  17. "~~Question 7:~~" +
  18. player.GetVar("Q7") +
  19. "~~Question 8:~~" +
  20. player.GetVar("Q8") +
  21. "~~Question 9:~~" +
  22. player.GetVar("Q9")
  23. )
  24.  
  25. var url = ("print.html?=" + header + args);
  26.  
  27. window.top.open(url,"_blank","width=800,height=600,menubar=no");
  28.  
  29. var url = window.location.href.split('?=');
  30. var urlData = url[1];
  31. var printVars = urlData.split('~~');
  32.  
  33. var player = opener.top.GetPlayer();
  34.  
  35. var printVars = ["Title"];
  36. for (var i=1;i<=9;i++) {
  37. printVars.push("Question "+i+":")
  38. printVars.push(player.GetVar("Q"+i));
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement