Small Flaw of Digg Podcasts

Digg Podcast

Now Digg is beta testing its “Podcasts” section. There is a module on the right of the page, with two tabs, “Find Podcast” and “Add New Podcast”.

Open the page and try clicking the tabs. You will discover the weird behaviors of this module.

Digg is using this single JavaScript function to handle the click events of the two tabs (Note that Prototype framework is used.):

function pcSwitchTabs(){
  var tab1 = $('podcastFind');
  var tab2 = $('podcastAdd');
  var addbox = $('podcast-add-box');
  var errordisplay = $('podcast-error-display');
  var ad = $('podcast_ad_switch');
  var psearch = $('podcast-search');
  var psubmit = $('podcast-submit');
  if (tab1.className == 'active') {
    tab1.className = '';
    tab2.className = 'active';
    if (addbox) {
      addbox.style.display = 'block';
    }
  }
}

You should ignore several lines of unused code. What does this function do? As its name, it switches the tabs back and forth. And it’s called either of the tabs is clicked. So the weird thing happens – whichever tab you click on, the current tab changes. This can make users very confused.

Another thing is that when you click on a tab, the page scrolls back to the top after the tab switch. This will definitely make users lose their attention. The code for the click-able tab:

<a onclick="pcSwitchTabs()" href="#">Find Podcast</a>

After executing the onclick event handler code, the browser tries to open the link specified by the “href” attribute. A “#” makes the page scroll back to the top. There are some common solutions to this. For example, give href attribute a value of “javascript:void(0)” or append “return false” to onclick attribute to stop the event.

These two bugs are very easy to fix, but leaving them aside will definitely make users confused or unhappy. I don’t know how the beta process is going, but hope Digg will fix them one day.

Digg Labs Ad on Digg through Microsoft

Following the Dracula movie ad on Digg yesterday, today I found an interesting thing:

Digg advertising itself

Note there is a picture on the right with a figure of Digg Arc.

So Digg is placing ads for its labs on its own site. It’s common for all web sites to promote their products. But the point was that the link on it didn’t point directly to Digg Labs. The url was redirected through a link with the domain “g.msn.com”.

I don’t know whether it’s an ad distributed by Microsoft (Digg has a deal with Microsoft). Is Microsoft just tracking the clicks for its partner?

If it’s an paid ad, it’s really funny :)

Digg the ad – Macabre

Digg ad

You must have already seen this ad if you visited Digg these days. I came across it several times today while digging around. This ad is distributed by DoubleClick for the Dracula movie “One Missed Call” by Warner Bros. So maybe you can also find it somewhere else.

Well yes, some people have the hobby of watching Dracula movies, but I think it’s not candy for everyone. Some scary people may be frightened by this.

When standing in front of the pier glass in midnight, imagine a horrified mouth fade in from the top of the mirror and finally it shows up to be one of the eyes of a ghost. It’s funny, huh? :)

I was not scared, but I don’t like it.

Why put such kind of content to draw people’s attention? Yes it will draw our attention but it’s inappropriate for some people. I know there are lots of great ads there, fun or beautiful.