Code javascript
2 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1 • Partagez
Code javascript
Bonjour j'ai crer un code javasricpt y a pas logtemp je les enfin fini mais quand je le mias dans la gestion des lien javasript bhen ... Il ne s'affcihe pas sur le site comment faire ?
Re: Code javascript
Bonjour,
Ceci n'est pas bon :
remplacez le tout par :
Ceci n'est pas bon :
- Code:
<script type="text/javascript">var param='d2410369aa9bc232964c521c445e62da';</script><script type="text/javascript"src="http://www.affilinks.fr/slide.js"></script>
remplacez le tout par :
- Code:
var param='d2410369aa9bc232964c521c445e62da';
if(!document.all && document.getElementById)
ejs_hauteur = window.innerHeight-550;
else
ejs_hauteur = 200;
document.write('<style type="text/css">\n');
document.write('#ejs_slide_box ');
document.write(' {');
document.write(' position:absolute;');
//document.write(' -moz-border-radius: 20px;');
// document.write(' border-radius: 20px;');
document.write(' width:550px;');
document.write(' height:450px;');
document.write(' top:'+ejs_hauteur+'px;');
document.write(' left:-480px;');
// document.write(' background-color:#FF0000;');
// document.write(' border-color:#000000;');
//document.write(' border-width:3px;');
// document.write(' border-style:solid;');
document.write(' background-image: url("http://www.affilinks.fr/images/slide/gabarit_aff3.png");');
document.write(' z-index: 99;');
document.write(' }\n');
document.write('#ejs_slide_bouton ');
document.write(' {');
document.write(' position:absolute;');
//document.write(' color:#ffffff;');
//document.write(' -moz-border-radius: 20px;');
document.write(' top:50px;');
document.write(' left:498px;');
document.write(' width:20px;');
document.write(' height:40px;');
document.write(' background-image: url("http://www.affilinks.fr/images/slide/btn_bg.png");');
//document.write(' background-color:#000000;');
//document.write(' font-family:arial;');
//document.write(' font-weight:bold;');
//document.write(' font-size:15px;');
document.write(' }\n');
document.write('#ejs_slide_buton_content ');
document.write(' {');
document.write(' position:relative;');
document.write(' top:5px;');
document.write(' }\n');
document.write('#ejs_slide_image ');
document.write(' {');
document.write(' position:relative;');
document.write(' -moz-border-radius: 20px;');
document.write(' top:7px;');
document.write(' left:7px;');
document.write(' }\n');
document.write('.ejs_slide_blanc\n');
document.write(' {\n');
document.write(' color:#ffffff;');
document.write(' font-family:arial;');
document.write(' font-weight:bold;');
document.write(' font-size:15px;');
document.write(' text-decoration:none;');
document.write(' }');
document.write('</style>');
var slide_tempo;
slide_url_image = 'http://www.dsgentreprise.fr/images/ban.jpg';
slide_url_click = 'http://www.dsgentreprise.fr';
slide_x = -480;
slide_ismoving = false;
slide_first = true;
function slide_start()
{
if(slide_x == -480 && !slide_ismoving)
slide_deballe();
else if(!slide_ismoving)
slide_remballe();
}
function slide_deballe()
{
slide_ismoving = true;
if(slide_x < 10)
{
slide_x += 5;
slide_move();
setTimeout("slide_deballe()", 10);
}
else
{
slide_ismoving = false;
if(slide_first)
slide_tempo = setTimeout("slide_start()", 5000);
slide_first = false;
}
}
function slide_remballe()
{
clearTimeout(slide_tempo);
slide_ismoving = true;
if(slide_x > -480)
{
slide_x -= 5;
slide_move();
setTimeout("slide_remballe()", 10);
}
else
slide_ismoving = false;
}
function slide_move()
{
if(document.getElementById)
{
document.getElementById("ejs_slide_box").style.left=slide_x+'px';
}
}
function slide_close()
{
if(document.getElementById)
{
document.getElementById("ejs_slide_box").innerHTML = '';
document.getElementById("ejs_slide_box").style.top = -100;
document.getElementById("ejs_slide_box").style.display = 'none';
document.getElementById("ejs_slide_box").style.left = -100;
document.getElementById("ejs_slide_box").style.width = 1;
document.getElementById("ejs_slide_box").style.height = 1;
}
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
}
else {
window.onload = function() {
oldonload();
func();
}
}
}
// addLoadEvent(slide_start);
setTimeout("slide_start()",5000);
http://document.getElementById("ID").value = $document
document.write('<div id="ejs_slide_box">');
document.write('<div id="ejs_slide_image">');
http://document.write('<center><a href="http://www.affilinks.fr/signup.php" target="_blank"><img src="http://www.affilinks.fr/images/titre_slide_in.jpg" border=0></a></center>');
document.write('<p><iframe src="http://www.affilinks.fr/slide.php?param='+param+'" frameborder="0" border="0" scrolling="no" height="410" width="490" allowtransparency="true"></iframe></p>');
document.write('</div>');
http://document.write('<div id="ejs_slide_bouton"><a href="#" onclick="slide_start();this.blur();return(false)" class="ejs_slide_blanc">><br /><</a><br /><a href="#" onclick="slide_close();return(false)" class="ejs_slide_blanc">x</a></div>');
document.write('<div id="ejs_slide_bouton"><div id="ejs_slide_buton_content"><center><img src="http://www.affilinks.fr/images/slide/show.png" onclick="slide_start();"><br><img src="http://www.affilinks.fr/images/slide/hide.png" onclick="slide_start();"><br><img src="http://www.affilinks.fr/images/slide/close.png" onclick="slide_close();"></center></div></div>');
document.write('</div>');
Re: Code javascript
Bonjour, Où en-est votre problème ? Deux solutions :
A bientôt sur ForumActif |
Invité- Invité
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum