Three kinds of thermochromic materials (DC8, DC12, DC16) were synthesized by linking the rigid 1,4-bis[2-(4-pyridyl)ethenyl]-benzene (bpeb) with different lengths of alkyl chains. They exhibit remarkable fluorescent color changes under the irradiation of 365 nm light with elevating temperature, which is supposed to be caused by the transition between the crystal state and the amorphous state. Interestingly, the DC16 solid also has a photochromic character. It should be noticed that the phase transition temperatures of three materials measured by differential scanning calorimetry are higher than those of the fluorescence color changes during the heating process. Thus, the allochroic effect is attributed to the synergistic effect of both heating and photo-inducement (365 nm). Ethanol can turn the heated powder into the initial crystal again which indicates that their thermochromic behavior is reversible and makes the fluorescence recover. This study is of significance for understanding the structure-property relation and guides thermochromic molecular design.