1function slide_init(img_name,img_url,img_h,img_w) { 2 var slide_tempo; 3 slide_url_image = img_name; 4 slide_url_click = img_url; 5 //slide_x = -260; 6 slide_ismoving = false; 7 slide_first = true; 8 // on passe les dimensions de l'image par php; 9//slide_width=284+5; 10//slide_height=257+5; 11slide_width=img_w+5; 12slide_height=img_h+5; 13slide_x = (-slide_width); 14slide_depart=slide_x; 15 //if(!document.all && document.getElementById) 16 if (!document.all) 17 { 18 ejs_hauteur = 2*(window.innerHeight-slide_height)/3;} 19 else 20 21 { ejs_hauteur = 2*(document.body.clientHeight-slide_height)/3; 22 } 23// HautEcran=window.screen.height 24 //ejs_hauteur=(window.screen.height-slide_height)/2; 25 document.write('<style type="text/css">\n'); 26 document.write('#ejs_slide_box '); 27 document.write(' {'); 28 document.write(' position:absolute;'); 29 document.write(' -moz-border-radius: 30px;'); 30 document.write( ' zindex:+30000;'); 31 document.write(' width:'+slide_width+'px;'); 32 document.write(' height:'+slide_height+'px;'); 33 34// document.write(' height:270px;'); 35 /*document.write(' top:600px;');*/ 36 //ejs_hauteur=0; 37 document.write(' top:'+ejs_hauteur+'px;'); 38document.write(' left:'+slide_depart+'px;'); 39 40 document.write(' background-color:#8B8B8B;'); 41 document.write(' border-color:green;'); 42 document.write(' border-width:3px;'); 43 document.write(' border-style:solid;'); 44 document.write(' }\n'); 45 46 document.write('#ejs_slide_bouton '); 47 document.write(' {'); 48 document.write(' position:absolute;'); 49 document.write( ' z-index:+20000;'); 50 document.write(' color:#FFFFFF;'); 51 document.write(' -moz-border-radius: 20px;'); 52 document.write(' top:20px;'); 53 document.write(' left:'+(slide_width-0)+'px;'); 54 document.write(' background-color:f0ffff;'); 55 document.write(' font-family:arial;'); 56 document.write(' font-weight:bold;'); 57 document.write(' font-size:15px;'); 58 document.write(' }\n'); 59 60 document.write('#ejs_slide_image '); 61 document.write(' {'); 62 document.write(' position:absolute;'); 63 document.write(' -moz-border-radius: 20px;'); 64 document.write( ' z-index:+20000;'); 65 document.write(' top:0px;'); 66 document.write(' left:0px;'); 67 document.write(' }\n'); 68 69 document.write('.ejs_slide_blanc\n'); 70 document.write(' {\n'); 71 document.write(' color:#FFFFFF;'); 72 document.write(' font-family:arial;'); 73 document.write(' font-weight:bold;'); 74 document.write(' font-size:15px;'); 75 document.write(' text-decoration:none;'); 76 document.write(' }');
77 document.write('</style>'); 78 document.write('<div id="ejs_slide_box">'); 79 document.write('<div id="ejs_slide_image">'); 80if (slide_url_click.length==0){ 81document.write('<a><img src="'+slide_url_image+'" border="0" title="Désolé pas de site !" /></a>'); 82 }else{ 83 document.write('<a href="'+slide_url_click+'" target="_blank"><img src="'+slide_url_image+'" border="0" alt="" /></a>');} 84 document.write('</div>'); 85 document.write('<div id="ejs_slide_bouton"><a href="#" onclick="slide_start();this.blur();return(false)" class="ejs_slide_blanc">><br /><</a><br /><a class="ejs_slide_blanc" href="#" onclick="slide_close()" >x</a></div>'); 86 document.write('</div>'); 87 slide_start(); 88} 89 90 91 92 function slide_start() 93 { 94 95 if(slide_x == slide_depart && !slide_ismoving) 96 slide_deballe(); 97 else if(!slide_ismoving) 98 slide_remballe(); 99 } 100 101 function slide_deballe() 102 { 103 slide_ismoving = true; 104 if(slide_x < 10) 105 { 106 slide_x += 5; 107 slide_move(); 108 setTimeout("slide_deballe()", 10); 109 } 110 else 111 { 112 slide_ismoving = false; 113 if(slide_first) 114 slide_tempo = setTimeout("slide_start()", 5000); 115 slide_first = false; 116 } 117 } 118 119 function slide_remballe() 120 { 121 clearTimeout(slide_tempo); 122 slide_ismoving = true; 123 if(slide_x >= (slide_depart+5)) 124 { 125 slide_x -= 5; 126 slide_move(); 127 setTimeout("slide_remballe()", 10); 128 } 129 else 130 slide_ismoving = false; 131 } 132 133 function slide_move() 134 { 135 if(document.getElementById) 136 { 137 document.getElementById("ejs_slide_box").style.left=slide_x+'px'; 138 } 139 } 140 141 function slide_close() 142 { 143 if(document.getElementById) 144 { 145 document.getElementById("ejs_slide_box").style.top = -100; 146 document.getElementById("ejs_slide_box").style.left = (slide_depart-10)+'px'; 147 document.getElementById("ejs_slide_box").style.width = 1; 148 document.getElementById("ejs_slide_box").style.height = 1; 149 document.getElementById("ejs_slide_box").innerHTML = 'la tour en jarez'; 150 } 151 } 152
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.