
|
View Full Version : HTML [Frames]
Lang14 06-08-2005, 02:09 PM Ok, so i'm making a "Picture Viewer" on a CD for school. This CD is distributed among students who buy a Yearbook. There's 1000 pictures going on the CD.
This picture viewer has a frame that shows the folder with the images. I would like to know how to make all files opened in this frame, stay in the frame. These pictures aren't links, they're actual files being viewed through a frame.
Thanks in advance,
Lang
PICTURES.HTML
<html>
<head>
<title>Pictures</title>
<frameset rows="101,*" frameborder="0">
<frame src="logo.html" height="110">
<frame name="pictureframe" src="/pictures/">
</framset>
</head>
</html>
WO-Jacob 06-08-2005, 07:00 PM You would want to do links, as if you default to files you let the OS decide how to handle it.
azizny 06-08-2005, 08:58 PM Easy, make the page into 2 frames (parent, middle) (both to be in PHP)..
When a user starts, display all files in the image directory as a list (you can use PHP display directory contents function), when a file is clicked you will use javascript to reload the middle page with the image name to display (link)...
EDIT: actually you wont need to use iframes nor javascript, just use a table with two columns and when a filename link is clicked it reloads the page with the right side viewing the picture ($_GET)..
Peace,
Lang14 06-08-2005, 09:46 PM azizny, you misunderstood. This is going on a CD. Not all computers have Apache running.
azizny 06-08-2005, 10:31 PM Originally posted by Lang14
azizny, you misunderstood. This is going on a CD. Not all computers have Apache running.
I guess I did, but why would you use HTML in the first place?
Why not use VB to do it, it would be better..
If else fails, just use html/iframe/javascript ->> which also then you can say not everyone has javascript, ifram!
Peace,
WO-Jacob 06-08-2005, 10:43 PM Originally posted by azizny
I guess I did, but why would you use HTML in the first place?
Why not use VB to do it, it would be better..
Not everyone has windows! :rofl:
Googled 06-08-2005, 11:49 PM I am not sure to understand what you want to do, but using:
<a href="link.html" target="your_frame_name">link</a>
would force the picture to be open in the appropriate frame.
azizny 06-08-2005, 11:54 PM Originally posted by WebOnce
Not everyone has windows! :rofl:
ok c++ :D
Peace,
RangerOfFire 06-09-2005, 03:02 AM Originally posted by Googled
I am not sure to understand what you want to do, but using:
<a href="link.html" target="your_frame_name">link</a>
would force the picture to be open in the appropriate frame.
Or better still add
<base target="frame_name" />
in the head, then you can use normal links.
Googled 06-09-2005, 11:57 AM Oh,
never heard of that one, neat :)
Lang14 06-09-2005, 06:29 PM Ok the frame opens up a folder on the CD. It's not an HTML page it just displays the files like Windows Explorer. See where I'm going?
|