/ Forside / Teknologi / Udvikling / Java Scripts / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java Scripts
#NavnPoint
molokyle 5410
Klaudi 2799
smorch 2439
kim 1360
Harlekin 1134
bentjuul 984
gibson 800
severino 695
Random 675
10  konsulent.. 626
hjælp til SlideShow Script...
Fra : rbv


Dato : 07-06-04 17:19

Jeg fandt dette slideshow script på nettet..... Jeg vil gerne gøre sådan at
når man trykker på
billedet, skal det henvise til billedet i stor format.

Det er vel denne ligne jeg skal tilføje noget....
javascript:et-eller-andet();... eller hvordan??

<a href=" "><img src=tekk.jpg name=PictureBox width=350
border="0"height=280></a>


----------------------------------------------------------------------------
------------------------------

<script>

var SlideShowSpeed = 3000;
var CrossFadeDuration = 2;

var Picture = new Array();
var Caption = new Array();
var showHot = false;

Picture[1] = 'billede01.jpg';
Picture[2] = 'billede02.jpg';
Picture[3] = 'billede03.jpg';
Picture[4] = 'billede04.jpg';
Picture[5] = 'billede05.jpg';
Picture[6] = 'billede06.jpg';
Picture[7] = 'billede07.jpg';
Picture[8] = 'billede08.jpg';
Picture[9] = 'billede09.jpg';
Picture[10] = 'billede10.jpg';

Caption[1] = "This is the first caption.";
Caption[2] = "This is the second caption.";
Caption[3] = "This is the third caption.";
Caption[4] = "This is the fourth caption.";
Caption[5] = "This is the fifth caption.";
Caption[6] = "This is the sixth caption.";
Caption[7] = "This is the seventh caption.";
Caption[8] = "This is the eighth caption.";
Caption[9] = "This is the ninth caption.";
Caption[10] = "This is the tenth caption.";

var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function control(how){
if (showHot){
if (how=="H") jss = 1;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDurati
on)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById)
document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}}
</script>

</head>
<body onload='showHot=true;self.focus();' bgcolor=#ffffff link="#FF0000"
vlink="#FF0000" alink="#FF0000">
<div align="center"> <center>
<table border=0 cellpadding=10 cellspacing=0>
<tr><td width=350 height=280 colspan="3">


<a href=""><img src=billede01.jpg name=PictureBox width=350
border="0"height=280></a>


</td>
</tr>
<tr>
<td id=CaptionBox class=Caption align=center colspan="3">
This is the default caption.
</td>
</tr>
<tr>
<td align="center">
<a class=Controls href="#" onClick="javascript:control('B');">< <</a>
</td>
<td align="center">
<a class=Controls href="#" onClick="javascript:control('H');">| | |</a>
</td>
<td align="center">
<a class=Controls href="#" onClick="javascript:control('F');"><b>>
></b></a>
</td>
</tr></table></center></div></body></html>
----------------------------------------------------------------------------
------------------------------



 
 
Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408926
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste