Results 1 to 6 of 6

Thread: Lost Image Path

  1. #1
    Join Date
    Jun 2005

    Lost Image Path

    I've taken over a site and cannot figure out some of the coding. it's a small site with 3 pages. one of the pages is pulling in an image i need to replace. simple enough. normally i would just find the code pulling in the image, find the image name and replace the image. I can't find the code so i replaced the obvious image. it didn't change. I've checked every html css js and image file on the site looking for how this image is being pulled in. Can someone please take a look at this page and help me out? heres' the url www.kirkwoodcreamerycom. i'm trying to replace the menu image. few images to choose from....menu.jpg is one i replaced. i've attached the most obvious html file [menu.html] for your review. let me know what else might be of help. thank you.

  2. #2
    Join Date
    Mar 2010
    I am not sure what menu image you're trying to replace. For the menu background, it looks like he has it baked directly into the main body background image:

    For the menu buttons and the rest of it:

    Which by the way is the most inefficient use of css spriting that i've ever seen. No matter if you or the previous guy created it, i'd recommend doing the site to where it doesn't require a sprite image like that.
    Last edited by Jarrod1937; 07-14-2010 at 06:20 PM.

  3. #3
    Join Date
    Jun 2005
    thank you.....http://www.kirkwoodcreamery.com/_img/bg-wrap.jpg .... i thought that too but the image doesn't have the menu in it. there is no call for menu.jpg and it's not part of any of the other images. i'm really lost on this. i've also search for an external link to the image.... to no avail. also...i'm not sure if you actually looked at the menu page itself which is here www.kirkwoodcramery.com/menu.html
    Last edited by sely; 07-14-2010 at 08:37 PM.

  4. #4
    Join Date
    Mar 2010
    The actual menu items are on the sprite sheet:

    If you don't know about css sprites, basically you can place multiple images onto a single image (the sprite sheet) and then use css to display parts of that image (like just the menu itself) using a specific set of coordinates. That is what the past developer did, using the sprite sheet linked to above.

  5. #5
    Join Date
    Jun 2005
    ah.... i see. what is the benefit of doing it this way? [i realize you recommended changing it but i'm curious]

  6. #6
    Join Date
    Mar 2010
    CSS spriting is used to reduce the number of http requests needed for a single page. If you have 10 navigation images (like buttons, arrows...etc), that is 10 http requests for each resource. Considering network delay and other factors (in aggregate known as Time To First Byte or TTFB) can be up to 100 ms per request, you can easily cutout half a second or more of page load time by spriting those images as it then only takes 1 http request to fullfill the work of those 10.
    Normally this is a good thing... But the previous developer used css spriting as an excuse to be lazy. He basically demolished the barrier between content and presentation and threw the actual pages, in image form, into the sprite sheet... and then proceeded to use 8 bit transparency and thus saved it as a .png 32 bit... However, that sprite sheet alone is now over a megabyte in filesize. Compare this to a page mostly made out of html and styled with css. Text can be gzipped in transport and have its size significantly reduced, whereas that sprite sheet will always been inefficient.
    All of the other items look like they're saved as a 32 bit png, even the slider images, one of which is over 200 KB, but if saved as a .jpg could be easily around 30-50 KB. From a performance standpoint, that site is needlessly bulky and inefficient.

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