Results 1 to 11 of 11

Thread: HTML [Frames]

  1. #1

    HTML [Frames]

    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
    Code:
    <html>
    <head>
    <title>Pictures</title>
    <frameset rows="101,*" frameborder="0">
    <frame src="logo.html" height="110">
    <frame name="pictureframe" src="/pictures/">
    </framset>
    </head>
    </html>

  2. #2
    Join Date
    May 2004
    Location
    Lansing, MI, USA
    Posts
    1,548
    You would want to do links, as if you default to files you let the OS decide how to handle it.
    Jacob - WebOnce Technologies - 30 Day 100% Satisfaction Guarantee - Over 5 Years Going Strong!
    Website Hosting, PHP4&5, RoR, MySQL 5.0, Reseller Hosting, Development, and Designs
    Powered By JAM - Professional Website Development - PHP, MySQL, JavaScript, AJAX - Projects Small & Large

  3. #3
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342

    Arrow Re: HTML [Frames]

    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,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  4. #4
    azizny, you misunderstood. This is going on a CD. Not all computers have Apache running.

  5. #5
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342

    Lightbulb

    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,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  6. #6
    Join Date
    May 2004
    Location
    Lansing, MI, USA
    Posts
    1,548
    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!
    Jacob - WebOnce Technologies - 30 Day 100% Satisfaction Guarantee - Over 5 Years Going Strong!
    Website Hosting, PHP4&5, RoR, MySQL 5.0, Reseller Hosting, Development, and Designs
    Powered By JAM - Professional Website Development - PHP, MySQL, JavaScript, AJAX - Projects Small & Large

  7. #7
    Join Date
    May 2005
    Location
    Planet Earth
    Posts
    813
    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.
    PutFile.io Disrupting traditional file hosting.
    █ Signup Early and enjoy Unlimited space/bandwidth for your files hosting, Forever!
    █ No Ads.
    █ No Countdowns.

  8. #8
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342
    Originally posted by WebOnce
    Not everyone has windows!

    ok c++

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  9. #9
    Join Date
    Jan 2005
    Location
    UK
    Posts
    94
    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.
    Please, call me RoF

    Cheap - Affordable Resellers - http://www.gazzin.com

  10. #10
    Join Date
    May 2005
    Location
    Planet Earth
    Posts
    813
    Oh,

    never heard of that one, neat
    PutFile.io Disrupting traditional file hosting.
    █ Signup Early and enjoy Unlimited space/bandwidth for your files hosting, Forever!
    █ No Ads.
    █ No Countdowns.

  11. #11
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •