Oct 24 2007

Cool AJAX Help Balloons

I’ve been looking around for some cool effects to add to my site, and this little scriptlet for adding help balloons is pretty cool. Although, I’m still looking for something a little more formal.

UPDATE: Just go here for a whole list of awesome tool-tips widgets!


Oct 24 2007

Awesome Syntax Highlighter

From the beginning until now, I have been displaying all my code postings

like this.

Well, I just found this awesome code syntax highlighter for all the main languages (C, C++, C#, Delphi, Java, JavaScript, PHP, Python, Ruby, SQL, VB, and XML). I’ve implemented it into this blog, and below is the first sample of code being rendered with it. It’s all javascript based, and damn simple to use.

You can get a copy of it through Google Code: Here

Here is a sample javascript function wrapped by this highlighter:

var attempts = 0;
var timerHandle = setTimeout("checkIfHilighterLoaded()", 350);

function checkIfHilighterLoaded(){
	try{
		dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
		dp.SyntaxHighlighter.HighlightAll('code');    

		clearTimeout(timerHandle);
	}
	catch(e){
		clearTimeout(timerHandle);

		if(attempts < 25){
			timerHandle = setTimeout("checkIfHilighterLoaded()", 350);
		}

		attempts++;
	}
}

see... bad ass =)


Oct 24 2007

Best code reference site ever

If you develop any type of code, w3schools is by far “the shit” for all references. Go there, learn, enjoy, and thank me later if somehow you’ve never seen this site before.

Go To w3schools.com


Oct 24 2007

getElementBy()

You ever use this? If you’re a web developer, I guarantee you have…a lot. I ran across this pretty nifty web2.o site that helps with syntax of all the different types. It’s GetElementsBy.com. Totally worth bookmarking.