Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IFrame Top Horizontal Scrollbar

Status
Not open for further replies.

jadeite100

Programmer
May 17, 2006
19
CA
Hi All:

I am using IE 6 SP2. IFrame is only support by IE.
Here is the code:

<body >
<table>
<tr>
<td vertical-align: top; padding: 3px>

<IFRAME SRC=" HEIGHT="150" WIDTH="200">
Sorry, your browser doesn't support inline frames.
</IFRAME>

</td>
</tr>
</table>
</body>

By default, the vertical scrollbar is on the right side and the horizontal scrollbar is on the bottom side.
Is there an attribute in IFrame that allows me to change the vertical scrollbar to show on the left side and the horizontal scrollbar to be on the top of the IFrame instead of the bottom.

If there is no attribute in IFrame to do the above,can anyone please provide me with the javascript to change the location of the horizontal
scrollbar to the top of the iframe and the vertical scrollbar to the left of the iframe instead of to the right of the iframe.


Any help or hint would be greatly appreciated.

Thank You.

Yours,

Frustrated.
 
Hi

jadeite100 said:
IFrame is only support by IE.
What do you mean ?
jadeite100 said:
Is there an attribute in IFrame that allows me to change the vertical scrollbar to show on the left side and the horizontal scrollbar to be on the top of the IFrame instead of the bottom.
No there is none. A document can not change where the browser puts the scrollbar. ( However in Mozilla it is possible to modify the chrome from add-ons. )

Your best solution is to Google for "custom javascript scrollbar" and choose one of the solutions and modify it. ( If its license permits it. )

Personally I would forget that. It is bad practice to put your visitors to learn a distinct document behavior or navigation method.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top