View Full Version : making links work
charliespuds
02-06-2007, 02:17 PM
Hi. New to this Forum & new to HTML coding so needing some help and insperation, my problem:- i have a frameset which is 1 row & 2 coloums, the row is at the top of the page where my links live, the two coloums are below and make up 30% & 70% across the page, the links from the row above loads a page into the first coloum which will be picture thumbnails, what i need help with is when clicking on any one of these thumbnails i want it to load into the other 70% coloum and be displayed asa bigger version of the thumbnail.
Any help would be more than appreciated as i have hit a brick wall with this even though i have scoured the web for help,
Thanks
Charlie
jscheuer1
02-06-2007, 03:34 PM
Your frames should all have names. If they do, you can target any frame from any other by using its name -
example frame with name:
<frame name="rightcol" src="some.htm">
example link targeting that frame:
<a href="large_photo_1.htm" target="rightcol"><img src="small_photo_1.jpg" border="0"></a>
charliespuds
02-08-2007, 03:29 PM
ok i understand that, here is my code:-
<FRAMESET ROWS="10%,*" BORDER="0" FRAMEBORDER="0" FRAMESPACING="0">
<FRAME SRC="menupanel.htm">
<FRAMESET COLS="25%,75%">
<FRAME NORESIZE SRC="displaypanel.htm" NAME="displaypanel">
<FRAME NORESIZE SRC="showpanel.htm" NAME="showpanel">
</FRAMESET>
</FRAMESET>
</HTML>
</HTML>
menupanel.htm loads the page with my links into the top row,
Clicking a link loads a page into the " displaypanel "
this page has small thumbnails, approx 10, i want to click on a thumb nail and it load into the frame called "showpanel " at a set size, say 500 x 500 pixcels, your example <a href="large_photo_1.htm" target="rightcol"><img src="small_photo_1.jpg" border="0"></a> is excellent so to include multiple pics on the page large_photo_1.htm how would i reference it ? how should the code look.
Your help is more than appreciated
Charlie
jscheuer1
02-08-2007, 04:54 PM
It isn't very clear to me what you are asking. Using only HTML, the answer would be that large_photo_1.htm is a page like any other and can have on it whatever you like, referencing other pages for other thumbnails would simply be a matter of changing the href attribute for those thumbnail's links.
It is possible to setup a script (on either the server and/or the client side) that could retrieve a single page and load into it whatever image, perhaps even based on the filename of the thumbnail image but, this is beyond HTML and, each way of doing it has drawbacks, even if it does save time in designing the image gallery. The time saved would be negligible, non-existent, or even negative for the first time this was set up anyway.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.