Mausklick bei Slideshow verhindern

dinu_ch

Grünschnabel
Ich habe im Netz folgenden Code gefunden :


Code:
<table width="100%" border="0">
<tr> 
<td><div align="center"> 
<script language="JavaScript1.2"> 
//Specify the slider's width (in pixels) 
var sliderwidth=320 
//Specify the slider's height (in pixels, pertains only to NS) 
var sliderheight=200 
//Specify the slider's scroll speed (larger is faster) 
var slidespeed=4 

//Specify the slider's images 
var leftrightslide=new Array() 
var finalslide='' 

leftrightslide[0]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv1.jpg" border=1></a>' 
leftrightslide[1]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv2.jpg" border=1></a>' 
leftrightslide[2]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv3.jpg" border=1></a>' 
leftrightslide[3]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv4.jpg" border=1></a>' 
leftrightslide[4]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv5.jpg" border=1></a>' 
leftrightslide[5]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv6.jpg" border=1></a>' 
leftrightslide[6]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv7.jpg" border=1></a>' 

///////do NOT edit pass this line//////////////////////////////////// 

var copyspeed=slidespeed 
//copy contents of leftrightslide into one variable 
for (i=0;i<leftrightslide.length;i++) 
finalslide=finalslide+leftrightslide[i]+" " 


if (document.all){ 
//dynamically write out the marquee tag 
document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>') 
//stop marquee when mouse is over it 
ieslider.onmouseover=new Function("ieslider.scrollAmount=0") 
//re-enable marquee when mouse is out 
ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=slidespeed") 
} 

function regenerate(){ 
window.location.reload() 
} 
function regenerate2(){ 
if (document.layers){ 
document.ns_slider01.visibility="show" 
setTimeout("window.onresize=regenerate",450) 
intializeleftrightslide() 
} 
if (document.all) 
ieslider.scrollAmount=slidespeed 
} 

//NS specific function for initializing slider upon page load 
function intializeleftrightslide(){ 
document.ns_slider01.document.ns_slider02.document.write('<nobr>'+finalslide+'</nobr>') 
document. ns_slider01.document.ns_slider02.document.close() 
thelength=document.ns_slider01.document.ns_slider02.document.width 
scrollslide() 
} 

//NS specific function for sliding slideshow 
function scrollslide(){ 
if (document.ns_slider01.document.ns_slider02.left>=thelength*(-1)){ 
document.ns_slider01.document.ns_slider02.left-=slidespeed 
setTimeout("scrollslide()",100) 
} 
else{ 
document.ns_slider01.document.ns_slider02.left=sliderwidth 
scrollslide() 
} 
} 
window.onload=regenerate2 

//--> 
</script
>
</div></td>
</tr>
</table>

Das ergibt eine Slideshow wenn man mit der Maus drauffährt, so bleibt das Bild stehen (-> siehe http://www.dinuberger.ch/pages/silvester.html) Wenn ich drauf klicke, so komme ich wieder zur Startpage. Wie kann ich das rausnehmen ?
 
Zuletzt bearbeitet:
Hi,

Spontan: nimm die a-Tags raus. Statt:
HTML:
leftrightslide[0]='<a href="http://www.dinuberger.ch" target="blank"><img src="../fotos/silvester/silv1.jpg" border=1></a>';
HTML:
leftrightslide[0]='<img src="../fotos/silvester/silv1.jpg" border=1>';
, oder Du packst von Dir gewünschte Links hinein.

Gruß

.
 

Neue Beiträge

Zurück