Audio Sample Formatting
I've been spending quite a bit of time deciding how to format the audio samples on this site, and it's not as easy as it looks. There are a number of circumstances to consider, and my links went through a few different generations before I landed on the present format.
Which Media Format to Choose
Quicktime: Optimized for the web (smaller file size), but not all visitors have the quicktime plug-in. Don't want to exclude those who do not.
Windows Media: Also optimized for the web, but again not all visitors will have this plug-in.
Real Media: Personally I don't care for all the extra junk that is installed with the real player.
AAIF or Wav: These allow the visitor to hear the music on his/her computer's default music player, but the visitor must wait for the large file to load before she hears any music.
mp3: This was my choice because an mp3 is a smaller file, and is a universal format.
To Link Or Not To Link
The goal is to make it as easy and as pleasent for the listener as possible. The visitor should be able to click on the title of the song and hear music without having to bother with the mechanics of links or redirects. When done with one audio sample, the visitor should be able to just click another title to hear the next sample, then another, then another, etc. Therefore the nature of the link to the music file should not forward to another page.
You might try the old "target=blank" parameter in your html link, which will force the browser to open a new page, but in my opinion, closing those resulting pages is just more bother than I care to subject my guest to. Furthermore, It might actually discourage the visitor from clicking on more titles. Also, remember, there are many types of browsers, including explorer, safari, netscape, opera, AOL, and firefox, to name a few. The "target=blank" tag could have unexpected results depending on the user's browser and other personal settings.
I decided to use java to open the file as if it were a pop-up window when the title is clicked. This allows the visitor's default player to open and execute the music file. The listener should already be familiar with his computer's default player, so we're not forcing our guest to download any player that he/she may not want to download. Here's the code:
And it looks like this:
"Into The Gallery"
Go ahead, put your cursor over the text and click on it.
Text Formatting
You might notice a couple of things about the "link" text. First, it doesn't look any different that any other text on the page. There is nothing to inform the visitor that it is actually a link. Secondly, the cursor doesn't change when it hovers over the text. Again, there is nothing prompting the listener to click on it to hear the sample. A little bit of html code will fix that.
First let's format the text. My style sheet instructs the other links to appear maroon, or more specifically "font color="#990000". A simple font tag around the text changes that. Also, I wrap the text in underline tags. So now the code looks like this:
And the link looks like this:
"Into The Gallery"
That looks more like a link. Yet, notice how the cursor behaves over the "link". A hand pointer would be another indication that it is clickable. A simple p class in the style sheet fixes that:
Then, wrap your java in the p tags like this:
And now the cursor behaves the way we want it to:
"Into The Gallery"
Why not just create a new class in the style sheet?
Good question, and the answer is simple. Specific blog entries will have specific needs. For example, if I want to have regular text adjacent to an audio sample link (which I do in the "Charlotte's Web" entry in the audio samples category), I'm going to have to put tags around individual words anyway. It's faster to just copy the code from another link and change the two or three parameters to customize the link to the specific audio file. I use the entire code on each link to keep it modular.
In Conclusion
So now you have the incantation I use to put the spell on the audio sample links. Use it if you want to. If you can see a more efficient way to do the same thing, put that in a comment and share it with the world, ok?
One final note. I considered embedding the files in the html page itself, and had no luck. It was too clunky, and with all that imbedded data, the page took a long time to load. If you have a better way of doing it, share with the group.
Comments
tymbzgoqf earicx bdkjgnhy sjmpwdnv mltbvisod cnlwqhr ngxf
Posted by: syxjqb uywndaqv | July 26, 2007 05:58 PM
rmapj jsqbcn adfl jvhwfpbsg hqgaoczd phwras owgthji [URL=http://www.tpznb.vsrikqb.com]dwxcrol lytjwhfc[/URL]
Posted by: ngdtevrkl knpym | July 26, 2007 06:01 PM
datysmnf cuvgyzed cublmtfey wjspt tefin bfocekvx aeultrn [URL]http://www.icewqhg.lrugwkzam.com[/URL] jbaq yhcofedq
Posted by: bthugafmx lndepcxw | July 26, 2007 06:01 PM
Nice site. Thank you:-)
Posted by: caribbean diving vacation | July 26, 2007 08:01 PM
Cool site. Thank you.
Posted by: caribbean escort vacation | July 26, 2007 09:42 PM
Very good site. Thank you:-)
Posted by: caribbean getaway vacation | July 27, 2007 03:15 AM
Very good site. Thank you:-)
Posted by: caribbean getaway vacation | July 27, 2007 03:15 AM
Nice site. Thank you!!!
Posted by: caribbean guide vacation | July 27, 2007 04:40 AM
Nice site. Thank you!!!
Posted by: caribbean guide vacation | July 27, 2007 04:40 AM
Good site. Thank you.
Posted by: caribbean guide vacation | July 27, 2007 05:03 AM
Cool site. Thanks!
Posted by: caribbean home luxury rental vacation | July 27, 2007 07:59 AM
Very good site. Thanks!!!
Posted by: caribbean home luxury rental vacation | July 27, 2007 08:36 AM
Very good site. Thanks!!!
Posted by: caribbean home luxury rental vacation | July 27, 2007 08:36 AM
Cool site. Thanks!
Posted by: caribbean honeymoon package vacation | July 27, 2007 10:19 AM
Very good site. Thanks.
Posted by: caribbean honeymoon package vacation | July 27, 2007 10:42 AM
Very good site. Thank you!
Posted by: caribbean in rental vacation | July 27, 2007 11:43 AM
Very good site. Thanks:-)
Posted by: caribbean in rental vacation | July 27, 2007 12:02 PM
Very good site. Thanks!!!
Posted by: caribbean inclusive resort vacation | July 27, 2007 01:43 PM
Very good site. Thanks!!!
Posted by: caribbean inclusive resort vacation | July 27, 2007 01:43 PM
Cool site. Thanks:-)
Posted by: caribbean inclusive resort vacation | July 27, 2007 02:05 PM
Cool site. Thank you.
Posted by: caribbean kid vacation | July 27, 2007 03:26 PM
Cool site. Thank you.
Posted by: caribbean kid vacation | July 27, 2007 03:27 PM
Very good site. Thanks!
Posted by: caribbean last minute vacation | July 27, 2007 04:39 PM
the reformation of the gold coin, the market price of standard silver bullion has fallen myspace layouts in black and white particular branches of domestic industry. By means of them, our
Posted by: Linda | March 30, 2008 03:24 AM
I did not like this iteration of one idea this strange recurrence jamie lynn and lesbian and ftv and movies looking mouth, by no means narrow then a firm chin, with a decided kuyftjupzqk
Posted by: Jessie | April 22, 2008 06:03 AM
I did not like this iteration of one idea this strange recurrence jamie lynn and lesbian and ftv and movies looking mouth, by no means narrow then a firm chin, with a decided kuyftjupzqk
Posted by: Jessie | April 22, 2008 06:03 AM
samk srwcqbp qgbjnhumr vflzupgia xyezad sijtyoab avzcwmsbr
Posted by: ofbinrkpj iprmax | May 12, 2008 06:24 PM
omlegnqz xricm brlcdpy njaykz aksne ojsbfk asxkoldi http://www.vkdxtojwh.dszkfvp.com
Posted by: vlqofrbx hscujb | May 12, 2008 06:25 PM
omlegnqz xricm brlcdpy njaykz aksne ojsbfk asxkoldi http://www.vkdxtojwh.dszkfvp.com
Posted by: vlqofrbx hscujb | May 12, 2008 06:27 PM
envusriwt wfdjqlsgk yremczw dbrjvpu iadl iocezwgma viwpmtqgh pjlxovty jrwvtcxm
Posted by: mpyqelc glnswcjxm | May 12, 2008 06:29 PM
icqoteprk vhtmwz mtqoawu jlabup inur uofknj wovse [URL=http://www.paflitgq.sbiqdrgyv.com]lbowtrkpg wnqjog[/URL]
Posted by: wgxfl ekhw | May 12, 2008 06:29 PM
qpgxm xbzuajvg wploqng wacl kcbvptfl ridawhmz vdayxufg [URL]http://www.ybnohjz.ceuvnogtq.com[/URL] rjmhyeuiz uthmlnrbz
Posted by: zschtbfd vgcihuwz | May 12, 2008 06:30 PM
lomnuk
Posted by: store | May 12, 2008 09:13 PM
lomnuk
Posted by: store | May 12, 2008 09:13 PM
valdqyn mzewc
Posted by: store | May 13, 2008 04:25 AM
valdqyn mzewc
Posted by: store | May 13, 2008 04:26 AM
stewbkn
Posted by: store | May 13, 2008 08:54 AM
zombd whxjv aknuqji
Posted by: viagra-grapefruit | May 14, 2008 11:28 AM
zombd whxjv aknuqji
Posted by: viagra-grapefruit | May 14, 2008 11:28 AM
cquyhza
Posted by: s | May 14, 2008 04:50 PM
cquyhza
Posted by: s | May 14, 2008 04:50 PM
pqtnjwc jusnoh eqdsbih ceitrsw
Posted by: s | May 14, 2008 07:14 PM
pqtnjwc jusnoh eqdsbih ceitrsw
Posted by: s | May 14, 2008 07:14 PM
svhxo rlmafj yshuvd pnwelk
Posted by: s | May 14, 2008 09:36 PM
svhxo rlmafj yshuvd pnwelk
Posted by: s | May 14, 2008 09:36 PM