Jquery as a text scroller, HELP

Jquery as a text scroller, HELP

Hey everyone, I am very new to jquery and have a project that i need to finish.

I am using jquery as a text scroll (jcarousel) to pull recent articles from a blog. Everything works great. EXCEPT, I would like to have the links open in a new browser if possible.

Here is where I THINK the code needs to be changed?? But i am just to new to make the edit, Your help is appreciated.

  1. // JavaScript Document
  2. function mycarousel_initCallback(carousel, state)
  3. {
  4.     // Lock until all items are loaded. That prevents jCarousel from
  5.     // setup correctly and we have to do that in the ajax callback
  6.     // function with carousel.setup().
  7.     // We're doing that because we don't know the exact height of each
  8.     // items until they are added to the list.
  9.     carousel.lock();
  10.     jQuery.get(
  11.         'special_textscroller.php',
  12.         {
  13.             'feed': 'http://wheelsforheroes.org/wwn/feed/'
  14.         },
  15.         function(xml) {
  16.             mycarousel_itemAddCallback(carousel, xml);
  17.         },
  18.         'xml'
  19.     );
  20. };
  21. function mycarousel_itemAddCallback(carousel, xml)
  22. {
  23.     var $items = jQuery('item', xml);
  24.     $items.each(function(i) {
  25.         carousel.add(i + 1, mycarousel_getItemHTML(this));
  26.     });
  27.     carousel.size($items.size());
  28.     // Unlock and setup.
  29.     carousel.unlock();
  30.     carousel.setup();
  31. };
  32. /**
  33.  * Item html creation helper.
  34.  */
  35. function mycarousel_getItemHTML(item)
  36. {
  37.     return '<h3><a href="'+$('link', item).text()+'">'+$('title', item).text()+'</a></h3><p>'+mycarousel_truncate($('description', item).text(), 150)+'</p>';
  38. };
  39. /**
  40.  * Utility function for truncating a string without breaking words.
  41.  */
  42. function mycarousel_truncate(str, length, suffix) {
  43.     if (str.length <= length) {
  44.         return str;
  45.     }
  46.     if (suffix == undefined) {
  47.         suffix = '...';
  48.     }
  49.     return str.substr(0, length).replace(/\s+?(\S+)?$/g, '') + suffix;
  50. };
  51. jQuery(document).ready(function() {
  52.     /**
  53.      * We show a simple loading indicator
  54.      * using the jQuery ajax events
  55.      */
  56.     jQuery().ajaxStart(function() {
  57.         jQuery(".jcarousel-clip-vertical").addClass('loading');
  58.     });
  59.     jQuery().ajaxStop(function() {
  60.         jQuery(".jcarousel-clip-vertical").removeClass('loading');
  61.     });
  62.     jQuery('#mycarousel').jcarousel({
  63.         vertical: true,
  64.         size: 0,
  65.         initCallback: mycarousel_initCallback
  66.     });
  67. });