Hashico is associated with hash and ico.

Source: Internet
Author: User

Hashico is associated with hash and ico.

A bug was proposed in a recent test, saying that the ico in several pages is not displayed, so we can troubleshoot the problem.

First, make sure that the link on the page has introduced favicon. ico. It is found that location. hash in js causes ico not to be displayed. The reason is that the ico is not displayed because location. hash is set when the ico is not loaded.

Location. hash is often used in projects and is used for url locating, for example, Zookeeper job-manage.pdf in http://h.liepin.com/?job-manage= ".

Solution ):

Project highlights: 1. The page content is sent by clicking menu;

2. The displayed content on the page is the default Click Event of a menu;

3. Set location. hash to a menu click event.

In this way, a problem exists. When the page is displayed, the menu click event is executed, and location. hash is set.

You can set a variable so that location. hash is not set when you enter the page.

$(function(){  $('.menu a').click(function(event,hashBoolean){    var that = $(this);    $.ajax({      url:'',      type:'GET',      data:{},      cache:false,      dataType:'json',      success:function(data){        if(data.flag == 1){          if(!hashBoolean) location.hash = ['id',that.attr('data-id')].join('=');        }      }    });  });  $('.menu a').eq(0).trigger('click',[true]);});



How can ico icons be truly associated with folders?

The principle of non-system built-in icons is to locate the image file as an icon Based on the path you set. Therefore, if you want to use a CD, this cannot be solved, because the disc is on another computer and your icon file is not on that computer, it is best to burn the ico icon together to the disc. However, you must set the icon of your file to the icon file located on the disc. Otherwise, the icon on the optical disk will not be used if the path on other computers is incorrect.
To solve this problem, you 'd better burn the icon on the CD first, and set the CD support to continue burning next time. After burning, you can burn your files again.

Change the default program icon in win7 (I have some nice ico files in hand), for example, change the icon associated with all txt files to what I want

Use FileTypesMan
Www.onlinedown.net/soft/66935.htm




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.