Explicação do código!
Assista em vídeo:
<body>
<p>
<title>Link Aleatorio</title>
</p>
<script type="text/javascript">
// <![CDATA[
var enderecos = new Array("https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196750051977&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196780051974&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196816718637&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=399828343422151&set=a.379724388765880.87185.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196883385297&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196846718634&set=a.400196696718649.92670.379721592099493&type=1&theater")
function linkAleatorio(){
aleat = Math.random() * enderecos.length
aleat = Math.floor(aleat)
window.open(enderecos[aleat], "blank", "");
}
</script>
<a href="javascript:linkAleatorio()">
<img border="0" src="http://static.maniadescraps.com/imagens/turboscraps/fra/seja-voce-mesmo.jpg">
<p style="text-align: center;">
<input type="button" value=" Clique aqui e descubra">
<p><!-- -->
<script>
( function (){var a,b,c,d;a=document.createElement("div"),a.id="fb-root";try{window.document.childNodes[0].appendChild(a)}catch(e){window.document.body.appendChild(a)}return window.fbAsyncInit=function(){var a,b;return window.document._thunder_doc_height=a=function(){var a,b,c;return b=document,a=b.body,c=b.documentElement,a&&c?Math.max(Math.max(a.scrollHeight,c.scrollHei ght),Math.max(a.offsetHeight,c.offsetHeight),Math.max(a.clientHeight,c.clientHeight)):800},FB.init({appId:"190322544333196",status:!0,cookie:!0}),b=function(){var c;return c=a(),FB.Canvas.setSize({width:520,height:c}),setTimeout(b,200)},setTimeout(b,200)},function(){var a;return a=document.createElement("script"),a.async=!0,a.src=document.location.protocol+"//connect.facebook.net/en_US/all.js",document.getElementById("fb-root").appendChild(a)}(),b=document.getElementsByTagName("head")[0],d=document.createElement("style"),c=document.createTextNode("body { position: relative; max-width: 520px!important;width: 520px!important; overflow: hidden!important; margin: 0px!important; }"),d.type="text/css",d.styleSheet?d.styleSheet.cssText=c.nodeValue:d.appendChild(c),b.appendChild(d)} )()
</script>
O que está sublinhado é o URL das imagens do facenook que irão aparecer no aplicativo, troque por fotos da sua página d:
O que está sublinhado e a negrito é a imagem que aparcerá quando carregarem no aplicativo!
O que está a azul escuro é o nome que aparecerá quando quiserem "gerar" a imagem!
Assista em vídeo:
<body>
<p>
<title>Link Aleatorio</title>
</p>
<script type="text/javascript">
// <![CDATA[
var enderecos = new Array("https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196750051977&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196780051974&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196816718637&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=399828343422151&set=a.379724388765880.87185.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196883385297&set=a.400196696718649.92670.379721592099493&type=1&theater", "https://www.facebook.com/sharer.php?u=https://www.facebook.com/photo.php?fbid=400196846718634&set=a.400196696718649.92670.379721592099493&type=1&theater")
function linkAleatorio(){
aleat = Math.random() * enderecos.length
aleat = Math.floor(aleat)
window.open(enderecos[aleat], "blank", "");
}
</script>
<a href="javascript:linkAleatorio()">
<img border="0" src="http://static.maniadescraps.com/imagens/turboscraps/fra/seja-voce-mesmo.jpg">
<p style="text-align: center;">
<input type="button" value=" Clique aqui e descubra">
<p><!-- -->
<script>
( function (){var a,b,c,d;a=document.createElement("div"),a.id="fb-root";try{window.document.childNodes[0].appendChild(a)}catch(e){window.document.body.appendChild(a)}return window.fbAsyncInit=function(){var a,b;return window.document._thunder_doc_height=a=function(){var a,b,c;return b=document,a=b.body,c=b.documentElement,a&&c?Math.max(Math.max(a.scrollHeight,c.scrollHei ght),Math.max(a.offsetHeight,c.offsetHeight),Math.max(a.clientHeight,c.clientHeight)):800},FB.init({appId:"190322544333196",status:!0,cookie:!0}),b=function(){var c;return c=a(),FB.Canvas.setSize({width:520,height:c}),setTimeout(b,200)},setTimeout(b,200)},function(){var a;return a=document.createElement("script"),a.async=!0,a.src=document.location.protocol+"//connect.facebook.net/en_US/all.js",document.getElementById("fb-root").appendChild(a)}(),b=document.getElementsByTagName("head")[0],d=document.createElement("style"),c=document.createTextNode("body { position: relative; max-width: 520px!important;width: 520px!important; overflow: hidden!important; margin: 0px!important; }"),d.type="text/css",d.styleSheet?d.styleSheet.cssText=c.nodeValue:d.appendChild(c),b.appendChild(d)} )()
</script>
O que está sublinhado é o URL das imagens do facenook que irão aparecer no aplicativo, troque por fotos da sua página d:
O que está sublinhado e a negrito é a imagem que aparcerá quando carregarem no aplicativo!
O que está a azul escuro é o nome que aparecerá quando quiserem "gerar" a imagem!
Sáb maio 09, 2015 11:10 am por Lima 3005
» Quem joga tribos
Qui Jul 10, 2014 5:35 pm por - Coming Soon
» Assistente de Farming - Tribos
Seg Jun 16, 2014 12:57 pm por Lima 3005
» Iniciação ao Gladiatus 4 - Treinos
Sáb Jun 14, 2014 11:13 pm por Lima 3005
» 4Fun - Divertimento #2 [Nyan Cat]
Sáb Jun 14, 2014 9:08 pm por Lima 3005
» 4Fun - Divertimento #1
Sáb Jun 14, 2014 10:04 am por Lima 3005
» Fórum 4Fun - Ler importante
Sáb Jun 14, 2014 9:59 am por Lima 3005
» Como gravar a tela no counter-strike 1.6 sem programa
Qui Jun 12, 2014 9:30 am por Lima 3005
» SKYRIM - Iniciação 3
Qua Jun 11, 2014 11:59 am por fredericoteixeira