A new link prediction algorithm (ZHA), based on comprehensive influence of predicting nodes and neighbor nodes to improve the accuracy and applicability of link prediction for complex networks, was proposed. Taking the comprehensive influence of predicting nodes and neighbor nodes into account, the new algorithm was constructed on the basis of the information of nodes in complex networks. ZHA was applied to seven real complex networks, and the random experiment was performed 10 times and 100 times, respectively, to identify its applicability and precision. Comparing the precision of ZHA with classical similarity link prediction algorithms, results showed that the new algorithm ZHA had higher precision. On the foundation of the experiments, the relationship between the accuracy of link prediction and experiment times was analyzed, and the principle of how to select experiment times was given.