$(document).ready(function(){ $("pre[class$='highlightcode']").each(function(i,el){ $(el).attr("name","code"); $(el).attr("class",$(el).attr("class").split("_")[0]); }); $("div[id^='guanggao']").hide(); dp.SyntaxHighlighter.BloggerMode(); dp.SyntaxHighlighter.ClipboardSwf = 'http://eric925.blogbus.com/files/12273355200.swf'; dp.SyntaxHighlighter.HighlightAll('code'); });