dcsimg
Results 1 to 3 of 3

Thread: How to make horizontal scrolling bar always stay at meddle of iframe?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    459

    How to make horizontal scrolling bar always stay at meddle of iframe?

    *I added a iframe in one web page as code below.

    <iframe src="GetHandler.ashx" height="350" width="400" scrolling="yes"></iframe>

    In GetHandler.ashx, a jpg image file will load.

    How to make horizontal scrolling bar always stay at center of iframe?

    Thank you reply.
    I just want to display image title which always at the center page.
    Last edited by aspfun; Mar 12th, 2018 at 02:44 PM.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    31,944

    Re: How to make horizontal scrolling bar always stay at meddle of iframe?

    1) The word you're looking for is "middle" as in the center of something. Meddle means to interfere, as in "Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup."
    2) I'm not sure there is a way to set the scrollbar to a particular spot. There might be a way if the source exposes an anchor tag, but it sounds like it generates an image, so that may not work.
    3)People are still using IFrames?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Junior Member HeribertoLugo's Avatar
    Join Date
    Nov 2014
    Posts
    29

    Re: How to make horizontal scrolling bar always stay at meddle of iframe?

    @tech
    i thought the same, but lots of big websites still use iframes.

    to scroll the iframe you can use jquery.. get the doc, then set the scroll.

    but it would be easier to use a div and then load the page you are putting in an iframe in that div with jquery.load, then scroll the div to where you want it.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width