bonjour
merci Revan
ce que je cherche est lorsque vous ettes sur une page et vous voulez le nom de la page suivante sans aurez le pouvoir
de passez a cette dernière voila une portion de code pour vous mettre dans le cadre
<html>
<head>
<title>Challenge des Mondes de Hauzgur</title>
</head>
<body onUnload="spawntopfivewindow();"
>
<center>
<script language="Javascript">
<!--
function FCGetWindowSize() {
FCWindowWidth = document.images.FCimg11bnr.width * 100;
if(document.images.FCimg12bnr.height <= 2) {FCWindowWidth = 1;} // too small vertically
}
document.write('<font size=-3><img src="http://www.fortunecity.com/banners/track1.gif" height=1 width=1% border="0" name="FCimg11bnr" hspace=0 vspace=0>');
document.write('<img src="http://www.fortunecity.com/banners/foo.gif" height=1% width=1 border="0" name="FCimg12bnr" hspace=0 vspace=0><br clear=all></font>');
FCGetWindowSize();
var fcadunit = 'misc'; // default
// -->
</script>
<script language="Javascript" src="http://www.fortunecity.com/js/adscript.global.js">
</script>
<table id=fcnavbartable style="visibility:hidden" cellpadding=0 cellspacing=0 border=0 width=730>
<tr align=center id=fcnavbartablerow>
<td>
<table cellpadding=0 cellspacing=0 border=0 width="100%">
<tr align=center>
<td width="3%"><a id="fcnavlogo" href="
https://www.dotster.com/" target="_new"><img src="http://www.fortunecity.com/images/fclogo_inline_new.gif" alt="web hosting, domain name, free web site, email address" width="120" height="15" border="0"></a></td>
<td id=fctdhosting width="22%"><a id="fcnavhosting" href="
https://www.dotster.com/" style="font-family:Verdana,sans-serif;font-size:11px;font-weight:bold;" target="_new">web hosting</a></td>
<td id=fctddomains width="24%"><a id="fcnavdomains" href="http://www.go.to/" style="font-family:Verdana,sans-serif;font-size:11px;font-weight:bold;" target="_new">short URLs</a></td>
<td id=fctdemail width="26%"><a id="fcnavmpa" href="http://www.myphotoalbum.com/" style="font-family:Verdana,sans-serif;font-size:11px;font-weight:bold;" target="_new">photo sharing</a></td>
<td width="2%" id="fcnavsrchsub"><img src="http://www.fortunecity.com/images/nb_top_right.gif" alt="" width="30" height="15" border="0"></td></tr>
</table>
</td>
</tr>
</table>
<script language="Javascript">
<!--
DisplayFCAdBanner();
document.getElementById('fcnavhosting').search = '?sid=fcnavhosting';
document.getElementById('fcnavmpa').search = '?sid=fcnavmpa';
// -->
</script>
<br>
<script language="Javascript">
<!--
DisplayFCAdButtons();
// -->
</script>
</center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="722" height="1">
<tr>
<td width="64" height="3"><font face="Tahoma" size="2" color="993300"><b>
<img border="0" src="pan011.gif" align="left" width="58" height="40"></b></font></td>
<td width="658" height="2" rowspan="3">
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Tahoma" size="4" color="993300"><b>..:: Les Mondes de Hauzgur
::.. </b></font></p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Tahoma" size="1" color="993300"><b>
... Apprendre par l'expérimentation ...</b></font></p>
<p> </td>
</tr>
</table>
<hr>
<p style="margin-top: 0; margin-bottom: 0"><font face="Tahoma" size="2" color="993300"><b><b>
<div align="center"><h3>- Test n°4 -</h3></div><p></p>
<div align="center">Essayez de trouver la combinaison. Plusieures solutions existent mais une seule vous donnera accès à la page.<p></div>
<p></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p></p>
<p style="margin-top: 0; margin-bottom: 0" align="center"><font face="Tahoma" size="4" color="FF0000">A vous de jouer !</font></p>
<script>
// Smartcode protection script, by Joganakin
// You may use this script as long as you don't remove the credits
// Mot de passe
aschar="ABCDEFGHIJKL"
//Valeurs des différents caracteres...
//A==1
//B==2
//C==3
//D==4
//E==5
//F==6
//G==7
//H==8
//I==9
//J==10
//K==11
//L==12
var won=0
var pos1=1
var pos2=1
var pos3=1
var multiplied=1
var password=1824 // Le mot de passe a trouver
var code=0
function check_pass()
{
var check1 = pos1 + 7// La valeur du premier caractere est augmentée de 7
var check2 = pos2 + 5// La valeur du second caractere est augmentée de 5
var check3 = pos3 + 3// La valeur du troisieme caractere est augmentée de 3
multiplied = check1*check2*check3 // les valeurs de check1, check2 et check3 sont multpliées entre elles.
code = check1+check2+check3
if (multiplied == password)
{
won = 0
}
else
{
won = 1
}
}
function finish()
{
if (won==1)
{
window.location = code+".html"
}
else
{document.cube.info.value = "Code erroné."}
}
// all the functions below are useless for you
// So don't bother to figure them out
le problème est dans
window.location = code+".html"