The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script edit [slideshow]

2 posters

Go down

Script edit [slideshow] Empty Script edit [slideshow]

Post by Extreme_gsxf Mon 27 Jul - 18:16

I have a script of a slideshow. It's ok. Very nice. Just I want to link the pictures... Every picture should link to the proper news... Is that possible on this:

Code:
<center><!-- THREE STEPS TO INSTALL FADING SLIDE SHOW:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the onLoad event handler into the BODY tag
  3.  Put the last coding into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  CodeLifter.com (arrdy0506@live.com) -->
<!-- Web Site:  http://www.enter08.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'http://i32.tinypic.com/258crbm.jpg'
Pic[1] = 'http://i30.tinypic.com/64hyl2.jpg'
Pic[2] = 'http://i32.tinypic.com/2hphuex.jpg'
Pic[3] = 'http://i30.tinypic.com/ipv0hx.jpg'
Pic[4] = 'http://i26.tinypic.com/2nlhkk8.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->

<BODY onLoad="runSlideShow()">

<!-- STEP THREE: Copy this code into the BODY of your HTML document  -->

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=280 width=340>
<img src="http://i32.tinypic.com/258crbm.jpg" name='SlideShow' width=340 height=280>
</td>
</tr>
</table>

<!-- Script Size:  2.13 KB --></center>
Extreme_gsxf
Extreme_gsxf
Forumember

Male Posts : 678
Reputation : 1
Language : english, german, french, montenegrian
Location : MNE

Back to top Go down

Script edit [slideshow] Empty Re: Script edit [slideshow]

Post by ankillien Mon 27 Jul - 18:26

Notice this part...
Code:
<img src="http://i32.tinypic.com/258crbm.jpg" name='SlideShow' width=340 height=280>

You can put a link there. Like this...
Code:
<a href="LINK URL">
<img src="http://i32.tinypic.com/258crbm.jpg" name='SlideShow' width=340 height=280>
</a>
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Script edit [slideshow] Empty Re: Script edit [slideshow]

Post by Extreme_gsxf Mon 27 Jul - 18:36

I thought that too... But I want that for every picture... I thought that was where the first picture goes. I'll try too add evreything [pictures+links] there.

Thanks for the idea
Extreme_gsxf
Extreme_gsxf
Forumember

Male Posts : 678
Reputation : 1
Language : english, german, french, montenegrian
Location : MNE

Back to top Go down

Script edit [slideshow] Empty Re: Script edit [slideshow]

Post by Extreme_gsxf Fri 31 Jul - 2:33

@ankillien, I saw now that I forgot to say the results... The link is working! BUT... The link is for every picture... I wan't that every picture has an own link... What to add to the script. Thanks
Extreme_gsxf
Extreme_gsxf
Forumember

Male Posts : 678
Reputation : 1
Language : english, german, french, montenegrian
Location : MNE

Back to top Go down

Script edit [slideshow] Empty Re: Script edit [slideshow]

Post by ankillien Fri 31 Jul - 4:56

Hi!
I've observed the script but..
Sorry, I didn't find a way to add link to every pic.
Hope someone knows how, he will tell you Smile
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Script edit [slideshow] Empty Re: Script edit [slideshow]

Post by Extreme_gsxf Fri 31 Jul - 12:27

ok, thanks anyway
Extreme_gsxf
Extreme_gsxf
Forumember

Male Posts : 678
Reputation : 1
Language : english, german, french, montenegrian
Location : MNE

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum