-
Urgent: IFrame problem
Sup,
I want to put some pics into my site. In my page I have 2 iframes.
1 iframe will show all pics like movie frames (small size), and the other iframe will show a single picture at a time. when the user clicks on a picture in the first frame, the pic will show up in the second frame in its real size.
The problem is that the first iframe, which holds all pics, is linked to page (src), and i dont know how to do it so when the user clicks a pic it will show up in its real size in the 2nd frame.
The first iframe called "Pics" and the second called "Pic".
How do i do that?
tnx alot!
-
Don't you just make all the links in the Pics frame have a target of Pic:
Code:
<a href="whatever" target="Pic">Click</a>
-
LOL
For some reason I thought 'Target' wont work and I didnt even try it. :D
tnx
-
I got an iframe with scrollbars.
My host put an ad in the top fo the page.
Is there a way to move the scrollbars a little down to the buttom of the page when the page is loading so the user wont see the ad at the top?
tnx again
-
You mean scroll that page down a bit? I think you can do it with JavaScript. The syntax is something like:
Code:
frameName.scrollTo(X. Y);
That could be a little wrong though, you'd have to test. And it may only work in IE, I can't remember. If you really wanted to get rid of the IFRAME you could always set it's visibilty to hidden and display to none. With CSS:
Code:
<style type="text/css"><!--
iframe[name="abc"] {
display:none;
visibility:hidden;
}
--></style>
But that will not work in IE. Or with JavaScript:
Code:
<script type="text/javascript"><!--
document.abc.style.visibility= 'hidden';
document.abc.style.display= 'none';
//--></script>
Remember though you'll probably loose you account if you do any of them :rolleyes:
-