Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Eu não sei porque ele não está pegando.
Criando uma pagina .htm e apenas abri clicando em cima ele funcionou perfeitamente.
Criei uma pagina .php que e o que eu preciso, abri pelo wampserver e ele não funcionou
Fiz o upload para minha hospedagem testei e nada.
Então tentei tirar do "initDemo4Buttons();" para baixo deixando apenas }); ai ele funcionou, então o erro está dai para baixo.
Me ajudem por favor......................
CSS
<style type="text/css">
#social_target { margin-left:; }
.buttons_loading { display:block; width:117px; height:32px; background:url(/images/throbber.gif) no-repeat center center; }
ul.socialbuttons { height: 32px; padding: 0 !important; margin:0 !important; }
ul.socialbuttons li { padding:6px !important; float: left; list-style: none !important; }
</style>
JAVASCRIPT
<script type="text/javascript">
$(function() {
$trbr({
"height" : {
"bar" : 32
},
"width": {
"left": "19%",
"center": "55%",
"right": "0",
"button": "100px",
},
"display" : {
"type" : "delayed",
"delay" : "10000",
"button": {
"spacer": false
},
"backgroundColor" : "#6c9e00",
"theme": {
"bar": "x-white",
}
},
"leftHtml" : "<div class='buttons_loading' id='social_target'></div>",
"position": {
"bar": "bottom"
},
"message" : {
"navigation" : true
},
"messages": [
"mensagens...............................",
"mensagens2........................................",
],
});
initDemo4Buttons();
function initDemo4Buttons() {
var url = window.location;
//replace this with your facebook app ID
var facebook_app_id = '125102657580278';
var $target = $("#social_target");
if ($target.hasClass("buttons_loading")) {
var $ul = $('<ul class="socialbuttons"></ul>');
$target.append($ul);
//add google+1 HTML
var $google_li = $('<li/>')
.hide()
.append('<a style="color:#FFFFFF" "vertical-align:middle">testo qualquer</a>')
.appendTo($ul);
//add facebook HTML
var $facebook_li = $('<li/>').hide()
.append('<iframe src="http://www.facebook.com/plugins/like.php?app_id='+facebook_app_id+'&href='+encodeURIComponent(url)+'&send=false&layout=button_count&width=90&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>')
.appendTo($ul);
var tweet = 'trbr - the unobtrusive jQuery notification bar that doesnt suck';
var twitter = 'contatwitter';
//add tweet HTML
var $twitter_li = $('<li/>')
.hide()
.append('<a href="http://twitter.com/share" class="twitter-share-button" data-url="'+url+'" data-text="'+tweet+'" data-count="horizontal" data-via="'+twitter+'">Tweet</a>')
.appendTo($ul);
//load twitter script
$.getScript('http://platform.twitter.com/widgets.js', function() {
$target.removeClass("buttons_loading");
$facebook_li.show();
$google_li.show();
$twitter_li.show(); //show it
});
}
}
});
</script>Carregando comentários...