PDA

View Full Version : I-Frame


SLEEPNESS
08-15-2002, 07:19 AM
i want to ask how do you change the scroll bar in and I-frame
i know how to change a regular scroll bar but i don't know how to change the I-frame scroll bar.. can you please tell me ??:o

beetle
08-15-2002, 09:03 AM
change the scrollbar CSS properties on the document that is held by the IFRAME. Remember, all frames are separate window instances...

acrokos
08-15-2002, 06:15 PM
You can use the sample code as your example

<HTML>
<HEAD>
<style>
<!--
BODY{
scrollbar-face-color:#DCDCDC;
scrollbar-arrow-color:#003399;
scrollbar-track-color:#003399;
scrollbar-shadow-color:#003399;
scrollbar-highlight-color:'';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:'';
a:link {color:#003399}
a:visited {color:#99CC99}
}
-->
</style>
</HEAD>

<BODY>

<hr size="1" color="#003399">

<script type='text/javascript'>
<!--Specify display mode (0 or 1)-->
<!--0 causes document to be displayed in an inline frame, while 1 in a new browser window-->
<!--if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown-->
var displaymode=0
var iframecode='<iframe id="external" style="width:100%;height:500px" src="http://www.yahoo.com"></iframe>'
if (displaymode==0)
document.write(iframecode)
</script>

<hr size="1" color="#003399">

</BODY>
</HTML>

acrokos
08-15-2002, 10:25 PM
No-I'm clueless

mouse
08-15-2002, 11:03 PM
Is this thread actually asking anything or are my services not required? :confused:;)

Morgoth
08-15-2002, 11:12 PM
Meaning:

http://Site.com/IFramePage.html (the page that is in the IFrame)

must have the style properties that chnages the scrollbars.

Quiet Storm
08-15-2002, 11:14 PM
I think it's supposed to be attached to this:

http://www.codingforums.com/showthread.php?s=&threadid=4106

boxer_1
08-15-2002, 11:32 PM
Originally posted by Quiet Storm
I think it's supposed to be attached to this:

http://www.codingforums.com/showthread.php?s=&threadid=4106

I agree and if not they should be as each is in regard to the same issue so I've merged the 2 together to eliminate some confusion (hopefully) ;) .

acrokos
08-15-2002, 11:41 PM
There seems to be no solution since the 2 threads have merged.

Help!

boxer_1
08-15-2002, 11:54 PM
Originally posted by acrokos
There seems to be no solution since the 2 threads have merged.

Help!

Just put the CSS for the scrollbar style you'd like into each document that loads into the iframe(assuming you have access to the source of the pages that will be loading into your iframe). A lot of coding you're thinking? Put the CSS in an external style sheet and call it into all of your pages with one line:

<link rel="stylesheet" href="scroll_bars.css" type="text/css" />

Edit: I just noticed by looking at the code you posted earlier that you do not have control of the source that will be loaded into your iframe. A different ballgame now.

lacrypta
08-16-2002, 02:40 AM
<style>
<!--
BODY{
scrollbar-face-color:#DCDCDC;
scrollbar-arrow-color:#003399;
scrollbar-track-color:#003399;
scrollbar-shadow-color:#003399;
scrollbar-highlight-color:'';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:'';
-->
</style>

you must add to the internal pages of the iframe for it to change

because the document is loading to compeletly diffrent pages

lacrypta
08-16-2002, 02:41 AM
Originally posted by boxer_1

quote:
--------------------------------------------------------------------------------
Originally posted by acrokos
There seems to be no solution since the 2 threads have merged.

Help!
--------------------------------------------------------------------------------



Just put the CSS for the scrollbar style you'd like into each document that loads into the iframe(assuming you have access to the source of the pages that will be loading into your iframe). A lot of coding you're thinking? Put the CSS in an external style sheet and call it into all of your pages with one line:

<link rel="stylesheet" href="scroll_bars.css" type="text/css" />

Edit: I just noticed by looking at the code you posted earlier that you do not have control of the source that will be loaded into your iframe. A different ballgame now.






should have read the post above mine lol :D