-
Mar 12th, 2018, 01:42 PM
#1
Thread Starter
Hyperactive Member
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.
-
Mar 12th, 2018, 02:20 PM
#2
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
-
Mar 21st, 2018, 10:43 PM
#3
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|