Ciao a tutti !
Ho creato un logo da mettere nel footer delle mie pagine.
Vorrei fare che tutto il codice html per realizzarlo sia contenuto in un file JS, che ovviamente richiamo in remoto, ad esempio dal mio sito, in modo tale che se devo apportare modifiche lo faccio solamente una volta e cambia automaticamente in tutte le pagine.
Questo è il logo:
codice:
<!DOCTYPE html>
<html lang="it-IT">
<head>
<meta charset="UTF-8" />
<title>Titolo</title>
<style type="text/css">
#webmaster {
width: 64px;
height: 64px;
margin: 15px auto;
}
a.webmaster {text-decoration: none;}
a.webmaster span {color: #4c4c4c; width: 200px; height: 60px; padding: 10px; display:none; text-align: center; }
a.webmaster:hover span {background-color: #e6e6e6; display:block; position:relative; bottom:160px; right:80px; border: 1px solid #666666; border-radius: 5px; }
</style>
</head>
<body>
<div id="webmaster">
<a href="http://andreagerm.altervista.org/" class="webmaster">[img]webmaster.png[/img]<span>Designed by Andrea Germanà
All Right Reserved.
Read the license under the logo</span></a>
</div>
</body>
</html>
Quindi tutto questo deve essere integrato in un file js, che salverò nel mio sito.
Sulle pagine dei siti web che realizzo, deve comparire richiamandolo, ad esempio tramite un Div, non so come sinceramente !!
Qualcuno sa aiutarmi ?!
Non so se mi sono espresso bene ... :/