473,804 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Switching scrollbar location in iFrame

I have an advertiser that delivers content in an iFrame. Because of
space limitations on my page, I have set the height of the iFrame to be
half that of it's contents. The problem is that the width of the iFrame
is 960. That means the vertical scrollbar on the right side appears off
screen for a lot of people.

Is it possible for me to switch the scrollbar from the right side of
the iFrame to the left side without having access to the HTML file in
the iFrame?
If not, I could make a "fake iFrame" using CSS (containing the full
size iFrame), and then hopefully be able to move the DIV's scrollbar to
the opposite side if that is possible.

Oct 15 '06 #1
1 3287
On Oct 15, 12:53 am, "Matt S" <msswasstas...@ aol.comwrote:
I have an advertiser that delivers content in an iFrame. Because of
space limitations on my page, I have set the height of the iFrame to be
half that of it's contents. The problem is that the width of the iFrame
is 960. That means the vertical scrollbar on the right side appears off
screen for a lot of people.
Make your IFrame narrower.
Is it possible for me to switch the scrollbar from the right side of
the iFrame to the left side without having access to the HTML file in
the iFrame?
Not easily.
If not, I could make a "fake iFrame" using CSS (containing the full
size iFrame), and then hopefully be able to move the DIV's scrollbar to
the opposite side if that is possible.
Did you try it?

--
Randy

Oct 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
19723
by: David | last post by:
How do you turn an iframe scrollbar off, from within javascript, after the iframe has been loaded? In my example, the page with the iframe on it is initially set to scrolling=yes, however, I want to be able to set the scrollbar=no, through javascript.
1
2198
by: Kristian | last post by:
I'm including an application into a customer website using an iframe. Some of the pages have a scrollbar since their height expands the height of the iframe. My problem is, I need to resize the width of my layout if a page in the application uses a scrollbar, some of the pages show lists of search results so I do now know the pages the expand the iframe height up front. How can I detect if the scrollbars are showing inside me page?
2
6507
by: Per Jessen | last post by:
This is a javascript question, possibly somewhat inappropriate for this group, but here we go: (please redirect me to the right place to ask). In Microsoft Internet Explorer (5 and up) using Javascript how do I detect whether an IFRAME is displayed with or without a vertical scrollbar? The initial height of an IFRAME is fixed, so depending on the content, the browser will render it with a scrollbar or not. In Netscape et al. this is...
1
7101
by: deepika | last post by:
Hi, I have a datagrid with 200 rows and an iframe adjacent to it. When I click on the row, the details of that row show up in the iframe. Now suppose I click on the 150th row, the postback occurs and I lose the view of my selected row because the datagrid now has the scrollbar repositioned to the top,with datagrid showing the first 70 rows. How can I keep the scrollbar where it was before the postback so that the selected row(which in...
22
2363
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether the user autoscrolls the usercontrol (other things that are on the usercontrol I want to scroll, but haven't included any here). Here are the steps to reproduce my problem. 1. Launch Visual Studio and create a new Windows application with...
0
1469
by: onzinnig | last post by:
Hello, I have a problem where a frame does not repaint a part of a window when using the horizontal scrollbar. Easier then explaining is to try out the two html pages at the bottom of this question. After creating page 1.html and 2.html in root drive c:\ e.g. load 2.html in IE (6.0).
1
5658
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where vertical scrollbat must be there. Where the FF show de scrollbar, IE show blank space, but doesn't show the scroll. My css for the scrool is: #content { clear: left; height:100%; width:100%; margin:5px; }
3
2653
by: Archana | last post by:
hi all, can any one tell me how will i set scrollbar to iframe throguh javascript. please help me asap. thanks in advance
0
926
by: AAaron123 | last post by:
hree questions. Number 3 is the tough one! { var htmlStyle = document.getElementsByTagName('html').style; var x = document.body.style; x.scrollbarShadowColor = htmlStyle.scrollbarShadowColor = "maroon" ....snip... The above script works but I have some questions:
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10073
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.