$(function () { $(".subnav dl").each(function () { var f = $(this).find("dd a").attr("href"); if (f == "/html/oxscdekayi/") { $(this).find("dd a").addClass("hover"); } }); }); function refreshCode() { if ($("#yxmImgID") != null) { $("#yxmImgID").attr("src", "/ValidateCode.aspx?t=" + Math.round(Math.random() * 10000)); } }