I’m back from vacation and I just had to deploy a small dasBlog update that I hacked up while I was on the plane and my wife and son were sleeping. Clemens posted on the GDN workspace about registering your own macro classes. The theme that my wife wanted for her weblog comes with a variety of different sayings for the top of the page (My Journal, Welcome, Listen To My Cheery Chirpings, etc). I thought it would be cool if the image rotated or changed every time you came to the site. So I built my own custom macro class that overrides the radio.macros.imageUrl macro. Now, if you pass in a series of images seperated by vertical pipes (i.e. “image1.gif|image2.gif|image3.gif”), it will split out into an array of image urls and pick one at random. Pretty cool. Anyone want to see the code?
Categories
Tags
ASP.NET (31)
Blogging (128)
C# (18)
Community (81)
dasBlog (12)
Database (13)
Debugger (23)
DLR (25)
Domain Specific Languages (15)
Dynamic Languages (12)
Entertainment (14)
ETech (15)
F# (51)
Family (33)
Functional Programming (18)
Games (18)
Hockey (34)
IronRuby (16)
Lanugages (43)
LINQ (24)
Microsoft (31)
Modelling (61)
Movies (23)
Music (20)
Parsing Expression Grammar (16)
PowerShell (41)
REST (18)
Ruby (23)
Service Broker (14)
Silverlight (20)
SOA (94)
Visual Studio (21)
Washington Capitals (43)
WCF (31)
Web 2.0 (67)
Web Services (12)
WF (21)
Windows Live (29)
Working at MSFT (23)
Xbox 360 (54)
XNA (15)
Series
Disclaimer
The information in this weblog is provided "AS IS" with no warranties,
and confers no rights. This weblog does not represent the thoughts,
intentions, plans or strategies of my employer. It is solely my opinion.
Inappropriate comments will be deleted at the authors discretion.
Comments: