Results 1 to 4 of 4

Thread: Dynamic Scrolling to fit in side iframe

  1. #1
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Scrolling to fit in side iframe

    Hi,

    Dynamic Scrolling to fit in side iframe. Looking for a script to adjust the running scrolling - IFRAME Scroller script.

    The scrolling full script which should be displaying is not showing but only half of the script matter.

    eg:
    The scrolling full script which should be .this is end <..this is shown but this is not shown >---[ displaying is not showing but only half of the script matter.]

    But if you turn to landscape it shows full but portrait it does not show.


    Please do let me know any one can help me out.



    THanks
    Gary

  2. #2
    Join Date
    Mar 2019
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can do this with JavaScript or JQuery. Here are a couple references...

    http://stackoverflow.com/questions/8...-content-in-it

    http://www.codeproject.com/Articles/...on-Its-Content
    Last edited by james438; 03-06-2019 at 05:41 AM. Reason: spam removed.

  3. #3
    Join Date
    Mar 2019
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    For removing scrollbars from the iFrame the simplest I could think is CSS as:

    Code:
    iframe {
       overflow: hidden;
    }
    And for making the content fit automatically use:
    
    Add this to your <head> section
    
    <script language="javascript" type="text/javascript">
      function resizeIframe(obj) {
        obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
      }
    </script>
    And change your iframe to this:

    Code:
    <iframe name="Stack" src="http://stackoverflow.com/" frameborder="0" scrolling="no" id="iframe" onload='javascript
    Last edited by james438; 03-06-2019 at 05:30 AM.

  4. #4
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,110
    Thanks
    96
    Thanked 98 Times in 96 Posts

    Default

    Mod Note: User amzoun95 has been banned. It appears he was involved in some hiding some malicious links in his post. We do try to ban all spammers when they appear, however this time the user came back and edited his post to include at least one link to a malware site. We want DynamicDrive to be a safe place for coders to ask questions and find answers and encourage any questionable posts to be reported.

    James438
    To choose the lesser of two evils is still to choose evil. My personal site

Similar Threads

  1. Dynamic Scrolling to fit in side iframe for IPAD
    By Gary4u in forum Looking for such a script or service
    Replies: 0
    Last Post: 09-11-2018, 05:45 PM
  2. Dynamic Scrolling to fit in side iframe
    By Gary4u in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-08-2018, 01:45 PM
  3. Lightbox 2.03a with large side-scrolling imagemap!
    By Sessomy in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-11-2009, 01:55 PM
  4. side scrolling horizontal image gallery (multiple instances on a page) wanted
    By mpiedlourde in forum Looking for such a script or service
    Replies: 1
    Last Post: 03-12-2008, 03:29 PM
  5. Side Scrolling Chapter Menu
    By d6veteran in forum JavaScript
    Replies: 0
    Last Post: 08-25-2006, 05:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •