Guest User

Untitled

a guest
Oct 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1.  
  2.  
  3. (function(w){
  4. var SwfoWrapper = function(options){
  5. this.initialize(options);
  6. };
  7. SwfoWrapper.prototype = {
  8. callback_: function(e){
  9. // swfobject Callback
  10. var condition = "SmartPhone";
  11.  
  12. document.body.className += " swfo_called";
  13.  
  14. if ( !e.success ) {
  15. // Failed Flash embedding
  16. if ( condition ) {
  17. document.body.className += " swfo_smart";
  18. } else {
  19. document.body.className += " swfo_pc";
  20. }
  21. }
  22. },
  23. initialize: fuction(options){
  24.  
  25. swfobject.embedSWF(
  26. "FILE_NAME.swf",
  27. "flashContent",
  28. "960", "420",
  29. "10.0.0",
  30. "expressInstall.swf",
  31. this.flashvars_ || null,
  32. this.params_ || null,
  33. this.attributes_ || null,
  34. this.callback_ || null
  35. );
  36.  
  37. }
  38. };
  39.  
  40. if (!w.SwfoWrapper) {
  41. w.SwfoWrapper = SwfoWrapper;
  42. }
  43.  
  44. }(window));
  45.  
  46.  
  47.  
  48. var options = {
  49. swf: "FILE_NAME.swf",
  50. "flashContent",
  51. "960",
  52. "420",
  53. "10.0.0",
  54. null,
  55. flashvars = {},
  56. params = {
  57. //wmode: "transparent"
  58. },
  59. attributes = {}
  60. };
  61.  
  62.  
  63. var swfow = new SwfoWrapper(options);
Add Comment
Please, Sign In to add comment