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

The majority of senior executives and managers are stressed at work. Eighty percent of senior executives and managers are stressed at work, with a third saying they are highly stressed,Stress: Executives and managers feeling the pressure

Well, what do you know? The first trailer for X-Men 3 actually looks good! I was really worried with all the rumors I'd been hearing. Now I'm looking forward toX-3 trailer up

Images: New visions from Google Earth | CNET News.com This is really great! The already wildly cool Google Earth is getting additional information laid on top of it, so you canGoogle Earth gets even cooler

I don't understand. NBC Universal is canceling three of the best Sci-Fi shows in recent memory. Journeyman, The 4400, and The Dead Zone are all goners. What's the deal?! All threeNBC Universal nailing the coffin shut on Sci-Fi

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!

Catch Up to Season Four | Battlestar Galactica | SCIFI.COM Looking for a quick reminder after the two decade wait between season 3 and the finally about to debut season 43 years in 8 minutes - BSG

There is nothing more perfect than the punch line of this Dilbert strip. Who among us cannot relate? I actually considered making that my new theme on this site. There areWhat futility doesn't feel like

The main "event" around here lately is that this website was down for two days while we switched servers. Apparently there were issues with the process. I'm not convinced everythingThe Event

So here we have week 4 of Stargate Universe and week 3 of Sanctuary. As I mentioned last week, on SGU they're heading for a close encounter with a star. It'sSyFy shows reviews: SGU and Sanctuary

Interviews & Features - NBC's Heroes: The Show's Secrets Unmasked! | TVGuide.com The show finally premieres tonight at 9pm! I just ran across this TVGuide.com article with some interesting news. ForHeroes: Last minute notes!

When this movie came out I saw it in the theater and was blown away. I still remember the feeling of exhilaration I had during the launch sequence, and theReview: Apollo 13

Okay, after my last post I got sucked into the world of lightsabers on YouTube and ran across these two series: Three in the Afternoon (and the upcoming sequel, Six inMore Jedi Fighting

I'm not even exaggerating. This blows my mind. There are certainly cakes that are unbelievably beautiful (and this is not one of them), but the level of detail on thisThe best cake I've ever seen

Michael Rosenbaum Talks Smallville — A JewReview.net Exclusive - Slice of Scifi Michael Rosenbaum, Lex Luthor on Smallville, gave an interview that reveals that next year's seventh season will be hisLex Luthor teases Smallville's final season

AAA has nothing on these guys

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