diff --git a/fblikebutton.admin.inc b/fblikebutton.admin.inc
index f6a1243..95ec6aa 100644
--- a/fblikebutton.admin.inc
+++ b/fblikebutton.admin.inc
@@ -214,6 +214,12 @@ function fblikebutton_static_settings() {
     '#default_value' => variable_get('fblikebutton_bl_language', 'en_US'),
     '#description' => t('Specific language to use. Default is English. Examples:<br />French (France): <em>fr_FR</em><br />French (Canada): <em>fr_CA</em><br />More information can be found at http://developers.facebook.com/docs/internationalization/ and a full XML list can be found at http://www.facebook.com/translations/FacebookLocales.xml'),
   );
+  $form['fblikebutton_format'] = array(
+    '#type' => 'select',
+    '#title' => t('Format'),
+    '#description' => t("Format for the facebook like buttons. iframes work without the facebook connect javascript but don't fire javascript events. If you use fbconnect anyway use the HTML5 version."),
+    '#options' => array('iframe' => t('iframe-element'), 'html5' => t('HTML5-div')),
+  );
   $form['#validate'] = array('fblikebutton_config_form_validate');
   return system_settings_form($form);
 }
diff --git a/fblikebutton.module b/fblikebutton.module
index 2ac6370..23f7920 100644
--- a/fblikebutton.module
+++ b/fblikebutton.module
@@ -244,8 +244,29 @@ function _fblikebutton_ds_field($field) {
  * appends the url to the configuration array.
  */
 function _fblikebutton_field($webpage_to_like, $conf) {
-  $conf['url'] = $webpage_to_like;
-  return theme('fblikebutton', $conf);
+  switch (variable_get('fblikebutton_format', 'iframe')) {
+    case 'iframe':
+      $conf['url'] = $webpage_to_like;
+      return theme('fblikebutton', $conf);
+    case 'html5':
+      return _fblikebutton_field_html5($webpage_to_like, $conf);
+  }
+}
+
+function _fblikebutton_field_html5($webpage_to_like, $conf) {
+  $conf['href'] = $webpage_to_like;
+  $other_css = $conf['other_css'];
+  unset($conf['other_css']);
+
+  $params = array();
+  foreach ($conf as $key => $v) {
+    $params['data-' . str_replace('_', '-', $key)] = $v;
+  }
+  if ($other_css) {
+    $params['style'] = $other_css;
+  }
+  $output = '<div class="fb-like" ' . drupal_attributes($params) . '></div>';
+  return $output;
 }
 
 /**
