About me

I'm a geek working as a distance learning specialist for a large corporation.

My Pandora "radio station" profile
This is my favorite way to listen to music now.

My Yahoo "radio station"
(Unfortunately, only works in IE.)

Shopping

Looking to purchase something online? Support Caddickisms by going through one of these links:

Caddickisms Store

Amazon.com

Calendar

January 2007
S M T W T F S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Topics

Posts by month

Around the site

What follows is a guest post from my wife, who has had a bit of a difficult week so far. I have come upstairs to ... get AWAY from our 2It's Not Fair!

SCI FI Wire | The News Service of the SCI FI Channel The Dark Is Rising is my favorite young adult fantasy series. Susan Cooper wrote the series and it reallyThe Dark Is Rising comes to film

Living in a house with 3 females has apparently done me in. I think I need to turn in my man card. Either that, or I have to stop watching moviesWhen did I become a girl?

I just found an interesting review of estimation strategies for creating e-Learning courses. Pete Blair has graciously posted a few free resources that could come in handy, one of which isCourse development estimation

Two "robots" found on YouTube today... One: paint this dark grey and it would be the coolest homemade AT-ST (All Terrian-Scout Transport) Halloween costume on the block. Just add a WookieYouTube robots

In Minority Report, Tom Cruise's character was able to interact with a very cool looking computer desktop that he could manipulate with special gloves just by waving his hands around. [captionTuesday TubeWatch: Minority Report to Sixth Sense to PHUD - Interface Advancement and Integration

Parkin's Lot: Stupid in America Godfrey Parkin takes the notion (supported by a study) that America's public schools, on average, produce substandard education, and applies it to corporate environments. As he says,America's schools ineffective? Challenges for corporate learning

(Man, I'm actually burning through my movie picks this year. This is awesome - big thank you to my parents for babysitting.) Tonight my wife and I settled in for theReview: Captain America

My friend and I first saw this movie in the mid-eighties on the recommendation of a video store clerk. That was probably the best tip we ever got from aReview: Sleuth

Yep. This is exactly how Star Wars: The Empire Strikes Back would have gone if I was in it. Autographs are $2. I gotta cover my costs. Hearing the words "That's howFINALLY, I get to wield a real lightsaber!

It's time for my annual(ish) list of movies I want to catch this year. Strap in and let the trailers wash over you like pure adrenalin. (Not that I know whatMovieWatch 2013

Apparently I suck at CSS. After two days of not being able to get the layout to flex correctly, I went in search of other examples to help me figureNew theme selected for Caddickisms

Sorry, all, for the lack of posts lately. There were some delays as Caddickisms moved to a new server, and I didn't want to lose anything here or on myServer move complete

A little girl is brutally murdered on the day of Jack Nicholson's retirement. The cops pin it on someone convenient, but Jack doesn't buy it. He's made a promise toReview: The Pledge

LiveDigital: NBC's Heroes pilot I don't know how this got there, but if you want to watch the Heroes pilot episode in a really bad, small, flash video format, there youNBC's Heroes pilot online

Making MP3s playable on a website, the easy way

[update: I've since started using the Anarchy plugin, which also makes standard hyperlinks playable, and though I'm on the fence about which technology I like better for audio (I got Anarchy for the video component), I lean toward the method described below because it's less visually intrusive. Unfortunately, I can't figure out how to disable the Anarchy audio player segment without disabling the whole thing, so all the example links below (and throughout this site for now) show Anarchy's "audio mp3" indicator beside the simple blue arrow used by the del.icio.us player described below. The blue arrow is the only thing installed by the instructions below (visually) so keep that in mind as you continue reading.] 

I’ve been looking for something like this for months. Who knew I’d find it without even trying on one of the most popular websites in the world?

A while back, I was working on some podcasting ideas for work and testing some things out here on Caddickisms. I spent a long time just trying to get an audio player to work correctly in WordPress (the software that runs this blog). The problem is that everything I found used the HTML <object> tag, which WordPress kept re-writing (and breaking) behind the scenes. I thought I had it fixed when I ran across the Gmail audio player, which uses the <iframe> tag, but apparently something gets screwed up there too, because while it works in Firefox, it’s broken in Internet Explorer (at least in version 6).

So… I gave up. I’m still working on Podcasting related stuff at work, but it’s not posted in a blog, so there was no reason to try to fix something I wasn’t going to be doing very often, if at all. But it kept gnawing at me…

Today, I finally found something that works and it’s easier than any other method I’ve found.

Here’s what you need to know:

  1. Copy this [updated. See comments]: <script type="text/javascript" src="http://images.del.icio.us/static/js/playtagger.js" ></script>
  2. Put it somewhere in your HTML.
  3. Put up a standard link to an MP3 file.

That’s it.

On a blog, you might think you’d have to put the HTML into a template page. You could do that, but with WordPress’ Sidebar Widgets, you don’t have to! Just use one of your existing Text Widgets and put the code in there. I put mine in the “About Me” widget. Works great! Now anytime I want to link to an MP3 file, visitors can play it directly from my page!

Here are some examples:

Grey Eye Glances: Close Your Eyes

Grey Eye Glances: If I was…

(for more of this type of music, try out the Grey Eye Glances site.)

[tags]website MP3 player, javascript tricks and tips, WordPress tips, del.icio.us tools, play tagger, Grey Eye Glances[/tags]

Tags: , , , , , ,

15 comments to Making MP3s playable on a website, the easy way

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge