Prompt para pegar nome
Gostaria de Colocar esse Codigo de Pegar Nome ( Apareçe um alerta pedindo o nome )
<script language="JavaScript">
function peganome()
{
var nome=prompt("Seja Legal e diga seu nome!!!","");
if (nome==null||nome=="")
{
alert("Poxa, você podia ter deixado pelo menos um apelido!!");
nome="Qualquer um"
}
return nome;
}
document.write("Bem vindo ao site meu amigo " + peganome());
</script>
Para o Codigo apareçer preciso desse codigo:
<script>document.write(peganome());</script>
Quero Colar o Codigo em search
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
search: 'Codigo Aki',
interval: 6000,
title: '@teozinbahia',
subject: '',
width: 250,
height: 300,
theme: {
shell: {
background: '#8ec1da',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
toptweets: true,
behavior: 'default'
}
}).render().start();
</script>
Gostaria que o nome que foi pego aparecer na busca mas da erro fica apareçendo:
', interval: 6000, title: '@teozinbahia', subject: '', width: 250, height: 300, theme: { shell: { background: '#8ec1da', color: '#ffffff' }, tweets: { background: '#ffffff', color: '#444444', links: '#1985b5' } }, features: { scrollbar: false, loop: true, live: true, hashtags: true, timestamp: true, avatars: true, toptweets: true, behavior: 'default' } }).render().start();
Alguem Ajuda
Discussão (1)
Carregando comentários...