Results 1 to 4 of 4

Thread: Help please - images in JS slideshow?

  1. #1
    Join Date
    Nov 2011

    Help please - images in JS slideshow?


    Sorry if this is a stupid question, I am a beginner. Here is my website:


    I am wondering if all the images I put in the slideshow are visible to Google and other search engines?

    I have spent some time recently adding good file names and alt text tags, but is it worth it - is there anything about the type of slideshow this is that makes the images invisible to search engines?

    I am worried about this because I recently put the site into Websitegrader and it saw only two images (the graphic elements) and none of the photographs.

    Would I be better off with a different type of slideshow that would make the images visible?

    Thanks very much for any help in advance - much appreciated.


  2. #2
    Join Date
    Jan 2009
    Definition and Usage

    The <img> tag embeds an image in an HTML page.

    Notice that images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.

    The <img> tag has two required attributes: src and alt.

    Yes you need the alt tag.

    I would also suggest that you turn most of the image stuff in to an array, eg

    captions =["BBC Headquarters, various, 2010.",
    "Arc Centre, Bury St Edmunds, Hopkins Architects, 2010." ... ];
    images = ["photos/001_bbc_portland_place_new_broadcasting_house_london_architectural_photographer.jpg",
       "photos/002_bury_st_edmunds_arc_centre_hopkins_london_architectural_photographer.jpg" ... ];
    // turn in to an array of objects 
    for( i in images )
    	images[i] = {src:images[i],caption:captions[i]};
    The example above compiles the array in to an array of objects. You then use a function to get the array element and that array element will equal an object which has properties that can be accessed.

    function getImage(){
       current = images.shift();
       images.push( current );
    return current; // return the object
    The beauty of rotating an arrays content is you do not need to track the current image number or to keep any further variables to mark the next item as it will always be the first item in the array.

    The function rotates the array of objects and returns a copy of the current object.

    you then will need only preload the image and use one image place holder or div
    obj = getImage();
    displayImage = new Image;
    displayImage.src = obj.src;
    displayImage.alt = obj.caption;
    document.getElementById("theDisplayDiv") = displayImage;
    Or something like that... Then you would use a small bit of script to take the text in the alt tag of the current image and populate the caption div, again you would only need one caption div and not a hundred odd.

    As for the other issues about the search engine, having proper and well written meta data is better. If you allow directory listings on your server you will get more traffic but run hotlinking issues.

    Proper meta will get you further in the rankings. If you were to have unrelated key words in your meta data then you would not get as good a positioning as with more precise meta data. This I proved in a site I built where the original site was appearing somewhere in the 1,000's in the page returns until I crafted some meta data and before long the site was in the top 5 returns from simply applying alt tags to images, proper meta data and a couple of other things that help the search engine crawl the site like allowing the bot to follow links.

    Testament to this fact was when the site disappearance led me to call a mutual friend and they told me that someone claiming to be a web developer had redesigned the site and where to find it. It was buried in a site all about poetry and the mans site was an artist and painter and his ranking fell off the face of google and because some poet / writer thought she was a web developer, she killed the mans site.

    Anyway, less of the ramblings, yes alts are important as is other data and especially the way google ranks your pages. It is likely you only found two images because thats what was easily accessed.

    I would also suggest that you "Watermark" your works as its open to theft and reuse and you get none of the credit.
    We all have baggage to carry in life, unfortunately for me I always get the trolley with the wonky wheel...
    Youre = {
               alert("YOU, the original poster / thread starter NEED to POST the code and NOT a LINK.");
                alert("You're missing the point. " + msg);

  3. #3
    Join Date
    Nov 2011
    Dear Junkmale,

    Thanks very much indeed for your help.

    I think it is beyond my technical knowledge to change the site as you suggest to an array. I can see that your way is more efficient, but seeing as I only know how to do it the way it is set up and as I will have to pay someone to do this, is it worth it?

    I will certainly add the ALT tags and hope that that will help, and check the Meta tags as you suggest.

    Thanks again.

  4. #4
    Join Date
    Jun 2011


    Multiple Fading Slideshows

    No coding needed!

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.09725 seconds
  • Memory Usage 2,875KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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