|
-
Sep 16th, 2002, 03:47 PM
#1
Thread Starter
Hyperactive Member
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!
-
Sep 16th, 2002, 05:07 PM
#2
Frenzied Member
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>
-
Sep 16th, 2002, 05:45 PM
#3
Thread Starter
Hyperactive Member
LOL
For some reason I thought 'Target' wont work and I didnt even try it. 
tnx
-
Sep 16th, 2002, 06:08 PM
#4
Thread Starter
Hyperactive Member
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
-
Sep 17th, 2002, 05:16 AM
#5
Frenzied Member
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
-
Sep 17th, 2002, 09:59 AM
#6
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|