Click to See Complete Forum and Search --> : Three Small Questions


Jick
07-10-2003, 06:29 PM
I have three small questions for any body who can answer them:

1. How do I make an Iframe have a different scrollbar color, but the main page the Iframe is on not! I know you can use style sheets to make all the scrollbars on a page a different color but how do you make it so only the Iframe has different color and the main page have the default scrollbar color?

2. I have this search form on my page (http://kd7pyo.infinitypages.com/) and when you type in a search term and hit "search" it will take you to another page with the results. I plan to put an Iframe on the same page the search is on and I want the search to display the results in the Iframe. Is this possible?

3. On the same page as question #2 I will be putting an Iframe as you know. How do I have the links on my page open up in the Iframe? I'm sure it's just setting the link target or something but I wasn't sure and I thought I had better ask to make sure.

Thanks in advance to any and all who can help me. :D

metrosoccer12
07-10-2003, 06:35 PM
1. put the css in the page that is being displyed in the iframe not on the main page

2. add target="IFRAMENAME" into the <form> tag so it will look like this <form name="NAME" target="IFRAMENAME"> something like that

3. add the same thing on the link tags target="IFRAMENAME" so it would look something like this <a href="http://" target="IFRAMENAME">blahblah</a>

Jick
07-10-2003, 07:18 PM
Thanks all those answers worked. I have one more question for you or any body else who can help. How do I make it so if my page is long and the Iframe needs to add scrollbars how do I make it so it will only allow the right side scroll bar and not the bottom scroll bar? Right now if my page is too long that I have in the Iframe it adds scrollbars, and thats ok but, I want it to only add the right scroll bar and not the bottom scroll bar. Is this possible to restrick it from allowing the bottom one but still allow the right side one? Thanks for any help!

pyro
07-10-2003, 07:19 PM
<body style="overflow-x: hidden;">

Jick
07-10-2003, 07:21 PM
Do I put that on the page that is in the Iframe or do I put it on the page the Iframe is on. So main page or Iframe page?

pyro
07-10-2003, 07:28 PM
Whichever one you don't want to horizontally scroll...