Archive for the ‘Uncategorized’ Category

CSS Rounded Corners

Thursday, April 23rd, 2009

Here are CSS styles for rounded corners in Firefox, Safari, & Chrome:

-moz-border-radius: 10px;
-webkit-border-radius: 10px;

Conflicts with jQuery $ function

Friday, April 17th, 2009

Prevent a $ function for jQuery from conflicting with some other use of the global $ function:

(function($) {
    // Within this block, $ is a reference to jQuery
})(jQuery);

clickTag (Actionscript 2.0)

Tuesday, April 14th, 2009

Here is the standard Adobe clickTag for Actionscript 2.0.

on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG);
}
}

This has some security built in by requiring the click through url start with http but it won’t work on secure servers. For example, in the preview window of secured ad server (like OpenX) the click won’t function but when served to a regular website the click works fine.

Many sites serve ads through iFrames. For this clickTag to work from an iFrame a “_blank” target parameter must be defined. On ad servers that allow target setting, a clickTARGET may be used.

on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG,"_blank");
}
}

or

on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG,clickTARGET);
}
}