Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

convert from JS embed code to WP script embed code

By: a guest on Mar 14th, 2012  |  syntax: JavaScript  |  size: 0.57 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How do you turn a script's embed code into the proper scripting for WordPress (e.g. functions.php, footer.php, both)?
  2.  
  3. For example:
  4.  
  5. <script src="http://jotform.us/min/g=feedback2" type="text/javascript"></script>
  6. <script type="text/javascript">
  7.   new JotformFeedback({
  8.      formId             : "123",
  9.      buttonText : "Wishbox Form",
  10.      base               : "http://jotform.us/",
  11.      background : "#F59202",
  12.      fontColor  : "#FFFFFF",
  13.      buttonSide : "bottom",
  14.      buttonAlign        : "right",
  15.      type               : 2,
  16.      width              : 400,
  17.      height             : 250,
  18.      instant            : true
  19.   });
  20. </script>