Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

leonardosb

o comando src não esta chamando a função javascript

Recommended Posts

Bom dia meu nome é Leonardo.

 

 

 

Criei um arquivo javascript externo para ocupar menos espaço no meu algoritmo HTML, porem estou com problemas na hora de utilizar a função src, eu coloco o destino corretamente, porem ele não funciona o diretorio. segue a sintaxe abaixo.

 

<!DOCTYPE html>
<html lang="pt-br"><!--Idioma do brasil-->
<head>
<meta charset="UTF-8"/><!--LINGUAGEM LATINA-->
<title>Aula 5</title>
<link rel="stylesheet" type="text/css" href="C:\UNINOVE\HTML 5/estilo.css"/>
<script> src= "C:\UNINOVE\HTML 5/funcoes.js" </script>
<body>
<div id="interface">
 
 
 
<header id="cabecalho">
<hgroup>
<h1>Musicas e estilos</h1>
<h2>Um pouco sobre musica e estilos </h2>  
</hgroup>
 
<img id="icone" src="C:\UNINOVE\HTML 5/tupac.png" alt="produto"/>
 
 
<nav id="menu">
<h1>Menu Principal</h1>
<ul>
<li onmouseover="homeFoto(1)" onmouseout="homeFoto(2)" ><a href="C:\UNINOVE\HTML 5/site.html" > home<a/></li>
<li ><a href="C:\Users\Leozinho\Desktop\projeto-glass-html5/specs.html" target="_blank">especificacoes<a/></li>
<li onmouseover="albumFoto(1)" onmouseout="albumFoto(2)"><a href="C:\UNINOVE\HTML 5/fotos.html" target="_blank">fotos<a/></li>
<li onmouseover="midiaFoto(1)" onmouseout="midiaFoto(2)"><a href="C:\Users\Leozinho\Desktop\projeto-glass-html5/multimidia.html" target="_blank">multimidia<a/></li>
<li><a href="C:\Users\Leozinho\Desktop\projeto-glass-html5/fale-conosco.html" target="_blank">Fale conosco<a/></li>
</ul>
</nav>
</header>
 
 
 
 
 
 
 
 
 
<section id="corpo">
<hgroup>
<h3>Musicas>   Hip hop</h3>
<h1>Saiba tudo sobre o World Wide Urban Music</h1>
</hgroup>
 
 
<h2 style="text-align:left";>Como funciona?</h2>
 
<p >Quem curti o estilo hip hop da gringa, vai se identificar muito com <a href="[url=http://worldwideurbanmusic.com]http://worldwideurbanmusic.com[/url]" target="_blank" >World Wide Urban Music </a> 
por trazer diariamente diversos sons novos  artistas, que surgem nas redes sociais
</p>
 
<figure class="foto-legenda">
<img src="C:\Users\Leozinho\Pictures/worldwide.jpg" alt="produto"/>
<figcaption>
<h3>World wide</h3>
<p>Uma nova maneira de ver o mundo</p>
</figcaption>
</figure>
 
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda
fdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
</section>
 
 
 
<aside id="lateral">
<h3>OUTRAS NOTICIAS</h3>
<p>fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdfsadfsafdasdfasdfsadfsadfasdfsadfsdafsdfas
fsadfasfasdffdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfdafdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfdafdsafadsfasdfasdfasdfsadf
asfasdfasdfasdddddfdsafas
fasdfsadfadsssssssdasfasfda
dsafasdfasdfssssssdasfasfda</p>
 
 
 
</aside>
 
 
 
<footer id="rodape">
 
<p>Desenvolvedor   Leonardo do santos</p>
 
 
</footer>
 
 
</div>
</body>
</head>
 
 
 
</html> 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Use assim:

 

<script src="funcoes.js"></script>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.