def show_buttons():
  return DIV(podcast_button(),share_button(),delete_button
(),_class='buttons')

def podcast_button():
  return DIV(
    A(
      IMG(
        _src=URL(
          r=request,c='static',f='images',args=
['buttons','podcast_0.gif']),
        _alt='Podcast audio',
        _border='0'
      ),
      SPAN('Podcast',_class='button-label'),
      _href=URL(r=request,c='info',f='podcast'),
    ),
    _class='rollover-podcast'
  )

def share_button():
  return DIV(
    XML("""
      <script language="javascript" type="text/javascript">
      var object = SHARETHIS.addEntry({
      title:"domain.com",
      url: "http://www.domain.com/12345";,
      summary: "This is really good stuff and you need some of it."},
      {button:false});
      //write customized button
      document.write('<div id="share" class="rollover-sharethis"><a
href="javascript:void(0)"><img src="/myapp/static/images/buttons/
sharethis_0.gif" alt="Share This" border="0"></a><br/><a
href="javascript:void(0)"><span class="button-label">Share</span></a></
div>');
      var element = document.getElementById("share");
      object.attachButton(element);
      </script>
    """),
    _class='rollover-sharethis'
  )

def delete_button():
  return DIV(
    A(
      IMG(
        _src=URL(r=request,c='static',f='images',args=
['buttons','delete_0.gif']),
        _alt='Delete',
        _border='0'
      ),
      SPAN('Delete',_class='button-label'),
      _onclick="return confirm('T('Confirm delete!')');",
      _href=URL(r=request,c='info',f='delete'),
    ),
    _class='rollover-delete'
  )

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to