Ce widget présente une définition de psychologie au hasard, avec un lien pour éventuellement en savoir davantage sur la définition proposée. Ce script est un parfait ajout pour permettre à vos visiteurs de découvrir à chaque visite, une nouvelle définition, un nouveau concept, une nouvelle théorie...
Les définitions sont tirées du site www.definitions-de-psychologie.com, dont chaque article présente une définition succincte et précise, accompagnée d'une explication plus détaillée, afin d'en savoir davantage sur le concept présenté.
Ce script est une création Psyblogs, en association avec le site www.definitions-de-psychologie.com. Le widget se présente sous cette forme :
<style type="text/css">
.pitdiv {
font-size:11px;
color: #333333;
}
.pitdiv a:link {
color:#101dc2;
text-decoration:none;
font-weight: bold;
}
.pitdiv a:visited {
color:#101dc2;
text-decoration:none;
font-weight: bold;
}
.pitdiv a:hover {
color:#080f69;
text-decoration:none;
font-weight: bold;
}
</style>
<script>
var ladatedef=new Date();
var jourandef=Math.floor(Math.random()*200);
var areadef = 'http://definitions-de-psychologie.blogspot.com/2012/01/definition-psychologie-'+jourandef+'.html';
function randomwordsdef () {
var randomnumberdef=Math.floor(Math.random()*200);
jourandef = randomnumberdef;
areadef = 'http://definitions-de-psychologie.blogspot.com/2012/01/definition-psychologie-'+jourandef+'.html';
document.getElementById("pitdivdef").innerHTML = '<iframe id="pitframedef" src="'+areadef+'" scrolling="no" frameborder="0" width="100%"></iframe>';
}
function displaywordsdef (areadef) {
var html =
'<div id="pitdivdef"><iframe id="pitframedef" scrolling="no" src="'+areadef+'" frameborder="0" width="100%" height="auto"></iframe></div>';
document.write(html);
}
displaywordsdef(areadef);
</script>
<center><i><b><a href="#" onclick="randomwordsdef ()">Une autre pensée au hasard</a></b></i></center>
.pitdiv {
font-size:11px;
color: #333333;
}
.pitdiv a:link {
color:#101dc2;
text-decoration:none;
font-weight: bold;
}
.pitdiv a:visited {
color:#101dc2;
text-decoration:none;
font-weight: bold;
}
.pitdiv a:hover {
color:#080f69;
text-decoration:none;
font-weight: bold;
}
</style>
<script>
var ladatedef=new Date();
var jourandef=Math.floor(Math.random()*200);
var areadef = 'http://definitions-de-psychologie.blogspot.com/2012/01/definition-psychologie-'+jourandef+'.html';
function randomwordsdef () {
var randomnumberdef=Math.floor(Math.random()*200);
jourandef = randomnumberdef;
areadef = 'http://definitions-de-psychologie.blogspot.com/2012/01/definition-psychologie-'+jourandef+'.html';
document.getElementById("pitdivdef").innerHTML = '<iframe id="pitframedef" src="'+areadef+'" scrolling="no" frameborder="0" width="100%"></iframe>';
}
function displaywordsdef (areadef) {
var html =
'<div id="pitdivdef"><iframe id="pitframedef" scrolling="no" src="'+areadef+'" frameborder="0" width="100%" height="auto"></iframe></div>';
document.write(html);
}
displaywordsdef(areadef);
</script>
<center><i><b><a href="#" onclick="randomwordsdef ()">Une autre pensée au hasard</a></b></i></center>
0 commentaires:
Enregistrer un commentaire