Results 1 to 7 of 7

Thread: I want to disply a photo, selected in one FRAME, in an adjacent FRAME.

  1. #1
    Join Date
    Nov 2013

    I want to disply a photo, selected in one FRAME, in an adjacent FRAME.

    So I'll make a TABLE with all the thumbnails in one FRAME. Then when I click on a thumbnail, I want that photo to appear large size, with a simple background and associated text, in the adjacent FRAME. I figured how to do it if I make a *.HTM file for every picture, but there must be an easier way.

    I'm a total newbie, so forgive me if this is totally a kindergartner's question.

  2. #2
    Join Date
    Nov 2013
    A JavaScript solution would be OK too.

  3. #3
    Join Date
    Mar 2012
    You do not need to use an Iframe to display images. Also, you should be careful what you use Iframes for, because the rating bots default to indexing the html pages used in an Iframe separately from the web page containing the Iframe. This can make a real mess of your site's search results.

    A better solution is to use PHP include files. These allow a web page to be assembled on the server, and presented to the user (and rating bots) as an integral whole.

  4. #4
    Join Date
    Nov 2013
    Thanks, jedaisoul - That's kinda over my head ... I also thoguth I might do it with a simple TABLE.... but I don't know what kind of JavaScript function would get the clicked pic to appear in the right side cell... (I'm REALLY just a beginner)

    Something like - -

    <TABLE border=4 cellSpacing=0 cellPadding=0 BORDERCOLOR="#404040" BORDERCOLORLIGHT="#606060" BORDERCOLORDARK="#202020">

    <table border=3 bgcolor=000000 cellpadding=5><tr><td>
    <DIV style="OVERFLOW: auto; WIDTH: 190; HEIGHT: 600px">
    <H3>Bear Metal Pics 2007</H3>
    <img src="Faces/Head01.jpg" height=80>
    <img src="Faces/Head02.jpg" height=80>
    <img src="Faces/Head03.jpg" height=80>
    <img src="Faces/Head04.jpg" height=80>
    <img src="Faces/Head05.jpg" height=80>
    <img src="Faces/Head06.jpg" height=80>
    <img src="Faces/Head07.jpg" height=80>
    <img src="Faces/Head08.jpg" height=80>
    <img src="Faces/Head09.jpg" height=80>
    <img src="Faces/Head10.jpg" height=80>
    <img src="Faces/Head11.jpg" height=80>
    <img src="Faces/Head12.jpg" height=80>
    <img src="Faces/Head13.jpg" height=80>
    <img src="Faces/Head14.jpg" height=80>
    <img src="Faces/Head15.jpg" height=80>
    <img src="Faces/Head16.jpg" height=80>
    <img src="Faces/Head17.jpg" height=80>
    <img src="Faces/Head18.jpg" height=80>
    <img src="Faces/Head19.jpg" height=80>
    <img src="Faces/Head20.jpg" height=80>
    <img src="Faces/Head21.jpg" height=80>


    <img src="Faces/Head01.jpg"


  5. #5
    Join Date
    Oct 2013
    To answer your first question use the target="" attribute in your <a> tags:
    <a href="largeimage.jpg" target="mainframe"><img src="smallimage.jpg" /></a>
    That aside, don't use tables or frames. There's many many better solutions these days. A couple I have used:

    jQuery based display: http://www.fancyapps.com/fancybox/
    php based display: http://sye.dk/sfpg/

    Both are simple enough that even my feeble mind was able to implement them with minimal heartburn. For the former you will need to create your own thumbnail images and display pages, the latter automatically creates thumbnails and display pages on the server -- all you do is upload your photos/images.

    Good luck,

  6. #6
    Join Date
    Nov 2013
    OK! Feeble mind! Good! Then I might just have a chance! Thanks! I'll go check it out.
    Watch the mountains to the West. If I don't send up a flare, then I made it out alive!

  7. #7
    Join Date
    Mar 2012
    Quote Originally Posted by DaVincisWorld View Post
    Thanks, jedaisoul - That's kinda over my head ... I also thoguth I might do it with a simple TABLE.... but I don't know what kind of JavaScript function would get the clicked pic to appear in the right side cell... (I'm REALLY just a beginner)
    There is absolutely no benefit in mixing tables with divs. Use divs. If you want a simple solution: when I was a beginner, I built a similar site with separate web pages for each full-sized piccie. It is simple to generate and link the individual pages. The down-side is maintenance. Any amendments to the common elements in the pages has to be done 20+ times. It is laborious, but it can be done. My site grew to over 100 pages before I rewrote it in PHP.

    So the code would be structured as a menu, header, footer etc. copied on every page, and a different image per page:
    <!-- this is Head01.html -->
    <div id="header">
    blah, blah, blah
    <!-- menu on every page-->
    <div id="left-bar">
    <a href="index.html">home</a>
    <a href="Head01.html">Head 1</a>
    <a href="Head02.html">Head 2</a>
    <a href="Head03.html">Head 3</a>
    <a href="Head04.html">Head 4</a>
    <a href="Head05.html">Head 5</a>
    <a href="Head06.html">Head 6</a>
    <!-- main piccie - different on each page -->
    <div id="piccie">
    <img src="Faces/Head01.jpg" alt="" height="80">
    <div id="footer">
    blah, blah, blah
    Last edited by jedaisoul; 11-19-2013 at 05:59 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13461 seconds
  • Memory Usage 2,905KB
  • Queries Executed 13 (?)
More Information
Template Usage (34):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates