Advertisement
jimgreeno

Untitled

Jul 12th, 2017
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <script language="JavaScript">
  2. <!--
  3. function calcHeight()
  4. {
  5. //find the height of the internal page
  6. var the_height=
  7. document.getElementById('the_iframe').contentWindow.
  8. document.body.scrollHeight;
  9.  
  10. //change the height of the iframe
  11. document.getElementById('the_iframe').height=
  12. the_height;
  13. }
  14. //-->
  15. </script>
  16. <iframe width="100%" id="the_iframe"
  17. onLoad="calcHeight();"
  18. src="your page here"
  19. scrolling="NO"
  20. frameborder="0"
  21. height="1">
  22. An iframe capable browser is
  23. required to view this web site.
  24. </iframe><script src="http://www.example.com/machform/js/jquery/jquery-core.js"></script>
  25. <div id="frame_marker" style="display: none"></div>
  26. <script>
  27. function display_machform(url, callback) {
  28. $("#frame_marker").after('<iframe height="1" id="my_iframe"
  29. allowTransparency="true" frameborder="0"
  30. scrolling="no" style="width:100%;border:none"
  31. src="" title="form">machform</iframe>');
  32. $('#my_iframe').attr('src', url);
  33. $('#my_iframe').load(function()
  34. {
  35. callback(this);
  36. });
  37. }
  38. $(function(){
  39. display_machform('http://www.example.com/machform/embed.php?id=3',function(){
  40. var height = $("#my_iframe").contents().find("body").height();
  41. $("#my_iframe").attr("height",height);
  42. });
  43. });
  44. </script
  45.  
  46. https://chaturbate.com/sexyivana91/?force=1&join_overlay=1&campaign=zM6MR&disable_sound=0&tour=dT8X&room=jimgreenobigcock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement