PC Review


Reply
Thread Tools Rate Thread

Automatically Swapping Pictures

 
 
jack
Guest
Posts: n/a
 
      15th Jun 2004
I would like to create an element in a page in which a picture changes
automatically every 5 seconds or so (a loop of six pictures). How could I
accomplish this?
Thanks,
Jack


 
Reply With Quote
 
 
 
 
Andrew Murray
Guest
Posts: n/a
 
      15th Jun 2004
an animated gif (?) or www.hotscripts.com or http://internet.javascript.com
should have an 'image rotator' script.

"jack" <(E-Mail Removed)> wrote in message
news:40cec947$0$19655$(E-Mail Removed)...
> I would like to create an element in a page in which a picture changes
> automatically every 5 seconds or so (a loop of six pictures). How could I
> accomplish this?
> Thanks,
> Jack
>
>



 
Reply With Quote
 
jack
Guest
Posts: n/a
 
      15th Jun 2004
Thanks for the reply, but I am afraid I did not adequately describe what I
am looking for. I would like to incorporate a spot on a page where I can
display a picture (that's the easy part). I would like to then have this
picture change every 5 seconds to a new picture, and create a loop of 6
total pictures. Thus, when the page is open, a portion of the display (the
picture) will continuously change. Thanks for any ideas...
Jack



"Andrew Murray" <(E-Mail Removed)> wrote in message
news:40ced1b0$0$28937$(E-Mail Removed)...
> an animated gif (?) or www.hotscripts.com or

http://internet.javascript.com
> should have an 'image rotator' script.
>
> "jack" <(E-Mail Removed)> wrote in message
> news:40cec947$0$19655$(E-Mail Removed)...
> > I would like to create an element in a page in which a picture changes
> > automatically every 5 seconds or so (a loop of six pictures). How could

I
> > accomplish this?
> > Thanks,
> > Jack
> >
> >

>
>



 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      15th Jun 2004
Go to the site http://www.chalcedony.com/javascript/scripts/index.html and look at the scripts in Chapter 5
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"jack" <(E-Mail Removed)> wrote in message news:40cee23d$0$19657$(E-Mail Removed)...
| Thanks for the reply, but I am afraid I did not adequately describe what I
| am looking for. I would like to incorporate a spot on a page where I can
| display a picture (that's the easy part). I would like to then have this
| picture change every 5 seconds to a new picture, and create a loop of 6
| total pictures. Thus, when the page is open, a portion of the display (the
| picture) will continuously change. Thanks for any ideas...
| Jack
|
|
|
| "Andrew Murray" <(E-Mail Removed)> wrote in message
| news:40ced1b0$0$28937$(E-Mail Removed)...
| > an animated gif (?) or www.hotscripts.com or
| http://internet.javascript.com
| > should have an 'image rotator' script.
| >
| > "jack" <(E-Mail Removed)> wrote in message
| > news:40cec947$0$19655$(E-Mail Removed)...
| > > I would like to create an element in a page in which a picture changes
| > > automatically every 5 seconds or so (a loop of six pictures). How could
| I
| > > accomplish this?
| > > Thanks,
| > > Jack
| > >
| > >
| >
| >
|
|


 
Reply With Quote
 
jack
Guest
Posts: n/a
 
      15th Jun 2004
Thanks for the link...it looks like one of those scripts will help me.


"Stefan B Rusynko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Go to the site http://www.chalcedony.com/javascript/scripts/index.html and

look at the scripts in Chapter 5
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "jack" <(E-Mail Removed)> wrote in message

news:40cee23d$0$19657$(E-Mail Removed)...
> | Thanks for the reply, but I am afraid I did not adequately describe what

I
> | am looking for. I would like to incorporate a spot on a page where I

can
> | display a picture (that's the easy part). I would like to then have

this
> | picture change every 5 seconds to a new picture, and create a loop of 6
> | total pictures. Thus, when the page is open, a portion of the display

(the
> | picture) will continuously change. Thanks for any ideas...
> | Jack
> |
> |
> |
> | "Andrew Murray" <(E-Mail Removed)> wrote in message
> | news:40ced1b0$0$28937$(E-Mail Removed)...
> | > an animated gif (?) or www.hotscripts.com or
> | http://internet.javascript.com
> | > should have an 'image rotator' script.
> | >
> | > "jack" <(E-Mail Removed)> wrote in message
> | > news:40cec947$0$19655$(E-Mail Removed)...
> | > > I would like to create an element in a page in which a picture

changes
> | > > automatically every 5 seconds or so (a loop of six pictures). How

could
> | I
> | > > accomplish this?
> | > > Thanks,
> | > > Jack
> | > >
> | > >
> | >
> | >
> |
> |
>
>



 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      16th Jun 2004
Yes, you can do exactly as you're asking with the scriipts on the sites I
provided you just need to have a hunt around for a bit.

Frontpage itself has nothing close to that if that is what you were asking.

Try the script below.

Change the images in the indicated places to your image names and change the
paths to suit your system/web site.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: CodeLifter.com ((E-Mail Removed)) -->
<!-- Web Site: http://www.codelifter.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] = 'toad.jpg'
Pic[1] = 'lizard.jpg'
Pic[2] = 'chameleon.jpg'
Pic[3] = 'gecko.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>

<BODY Background=../graphics/grayback.jpg onLoad="runSlideShow()">
<center><BR><BR>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=190 width=330>
<img src="toad.jpg" name='SlideShow' width=330 height=190>
</td>
</tr>
</table>


</center>
</BODY>
</HTML>






"jack" <(E-Mail Removed)> wrote in message
news:40cee23d$0$19657$(E-Mail Removed)...
> Thanks for the reply, but I am afraid I did not adequately describe what I
> am looking for. I would like to incorporate a spot on a page where I can
> display a picture (that's the easy part). I would like to then have this
> picture change every 5 seconds to a new picture, and create a loop of 6
> total pictures. Thus, when the page is open, a portion of the display (the
> picture) will continuously change. Thanks for any ideas...
> Jack
>
>
>
> "Andrew Murray" <(E-Mail Removed)> wrote in message
> news:40ced1b0$0$28937$(E-Mail Removed)...
> > an animated gif (?) or www.hotscripts.com or

> http://internet.javascript.com
> > should have an 'image rotator' script.
> >
> > "jack" <(E-Mail Removed)> wrote in message
> > news:40cec947$0$19655$(E-Mail Removed)...
> > > I would like to create an element in a page in which a picture changes
> > > automatically every 5 seconds or so (a loop of six pictures). How could

> I
> > > accomplish this?
> > > Thanks,
> > > Jack
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
JPKarlsen [FP MVP]
Guest
Posts: n/a
 
      16th Jun 2004
Here is one I altered slightly to include a few more options.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Mike Canonigo ((E-Mail Removed)) -->
<!-- Web Site: http://www.munkeehead.com -->

<!-- Modyfied by Jens Peter Karlsen 2003 -->

<!-- Begin
NewImg = new Array (
"images/1.jpg",
"images/2.jpg",
"images/3.jpg"
);

var p = NewImg.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = NewImg[i];
}
var ImgNum = 0;
var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 3000;
var t;
var lock = false;
var run;
function chgImg(direction) {

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();
}
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}

if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.SlideShow.src = NewImg[ImgNum];
}
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
}
}

// End -->
</script>

</head>

<body>
<img src="images/1.jpg" name="SlideShow" width="125" height="100">
<table>
<tr>
<td align="right"><a href="javascript:chgImg(-1)">Previous</a></td>
<td align="center"><a href="javascript:auto()">Auto/Stop</a></td>
<td align="left"><a href="javascript:chgImg(1)">Next</a></td>
</tr>
</table>

</body>

</html>


Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


nntp://msnews.microsoft.com/microsoft.public.frontpage.client/<40cfe825$0$28937$(E-Mail Removed)>

Yes, you can do exactly as you're asking with the scriipts on the sites I
provided you just need to have a hunt around for a bit.

Frontpage itself has nothing close to that if that is what you were asking.

Try the script below.

Change the images in the indicated places to your image names and change the
paths to suit your system/web site.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: CodeLifter.com ((E-Mail Removed)) -->
<!-- Web Site: http://www.codelifter.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] = 'toad.jpg'
Pic[1] = 'lizard.jpg'
Pic[2] = 'chameleon.jpg'
Pic[3] = 'gecko.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>

<BODY Background=../graphics/grayback.jpg onLoad="runSlideShow()">
<center><BR><BR>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=190 width=330>
<img src="toad.jpg" name='SlideShow' width=330 height=190>
</td>
</tr>
</table>


</center>
</BODY>
</HTML>






"jack" <(E-Mail Removed)> wrote in message
news:40cee23d$0$19657$(E-Mail Removed)...
> Thanks for the reply, but I am afraid I did not adequately describe what I
> am looking for. I would like to incorporate a spot on a page where I can
> display a picture (that's the easy part). I would like to then have this
> picture change every 5 seconds to a new picture, and create a loop of 6
> total pictures. Thus, when the page is open, a portion of the display (the
> picture) will continuously change. Thanks for any ideas...
> Jack
>
>
>
> "Andrew Murray" <(E-Mail Removed)> wrote in message
> news:40ced1b0$0$28937$(E-Mail Removed)...
> > an animated gif (?) or www.hotscripts.com or

> http://internet.javascript.com
> > should have an 'image rotator' script.
> >
> > "jack" <(E-Mail Removed)> wrote in message
> > news:40cec947$0$19655$(E-Mail Removed)...
> > > I would like to create an element in a page in which a picture changes
> > > automatically every 5 seconds or so (a loop of six pictures). How could

> I
> > > accomplish this?
> > > Thanks,
> > > Jack
> > >
> > >

> >
> >

>
>




[microsoft.public.frontpage.client]
 
Reply With Quote
 
jack
Guest
Posts: n/a
 
      16th Jun 2004
Wow...thanks for the effort and responses from JPK, AM and SR...I appreciate
it, and I will post my page when completed....
Regards,
Jack


"JPKarlsen [FP MVP]" <(E-Mail Removed)> wrote in message
news:ORnP%(E-Mail Removed)...
> Here is one I altered slightly to include a few more options.
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html;

charset=windows-1252">
>
> <SCRIPT LANGUAGE="JavaScript">
> <!-- Original: Mike Canonigo ((E-Mail Removed)) -->
> <!-- Web Site: http://www.munkeehead.com -->
>
> <!-- Modyfied by Jens Peter Karlsen 2003 -->
>
> <!-- Begin
> NewImg = new Array (
> "images/1.jpg",
> "images/2.jpg",
> "images/3.jpg"
> );
>
> var p = NewImg.length;
> var preLoad = new Array();
> for (i = 0; i < p; i++) {
> preLoad[i] = new Image();
> preLoad[i].src = NewImg[i];
> }
> var ImgNum = 0;
> var ImgLength = NewImg.length - 1;
>
> //Time delay between Slides in milliseconds
> var delay = 3000;
> var t;
> var lock = false;
> var run;
> function chgImg(direction) {
>
> if (document.all) {
> document.images.SlideShow.style.filter="blendTrans(duration=2)";
>

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuratio
n)";
> document.images.SlideShow.filters.blendTrans.Apply();
> }
> if (document.all) {
> document.images.SlideShow.filters.blendTrans.Play();
> }
>
> if (document.images) {
> ImgNum = ImgNum + direction;
> if (ImgNum > ImgLength) {
> ImgNum = 0;
> }
> if (ImgNum < 0) {
> ImgNum = ImgLength;
> }
> document.SlideShow.src = NewImg[ImgNum];
> }
> }
> function auto() {
> if (lock == true) {
> lock = false;
> window.clearInterval(run);
> }
> else if (lock == false) {
> lock = true;
> run = setInterval("chgImg(1)", delay);
> }
> }
>
> // End -->
> </script>
>
> </head>
>
> <body>
> <img src="images/1.jpg" name="SlideShow" width="125" height="100">
> <table>
> <tr>
> <td align="right"><a href="javascript:chgImg(-1)">Previous</a></td>
> <td align="center"><a href="javascript:auto()">Auto/Stop</a></td>
> <td align="left"><a href="javascript:chgImg(1)">Next</a></td>
> </tr>
> </table>
>
> </body>
>
> </html>
>
>
> Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
>
>
>

nntp://msnews.microsoft.com/microsoft.public.frontpage.client/<40cfe825$0$28937$(E-Mail Removed)>
>
> Yes, you can do exactly as you're asking with the scriipts on the sites I
> provided you just need to have a hunt around for a bit.
>
> Frontpage itself has nothing close to that if that is what you were

asking.
>
> Try the script below.
>
> Change the images in the indicated places to your image names and change

the
> paths to suit your system/web site.
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> <HTML>
> <HEAD>
> <LINK href="general.css" rel="stylesheet" type="text/css">
>
> <SCRIPT LANGUAGE="JavaScript">
> <!-- Original: CodeLifter.com ((E-Mail Removed)) -->
> <!-- Web Site: http://www.codelifter.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] = 'toad.jpg'
> Pic[1] = 'lizard.jpg'
> Pic[2] = 'chameleon.jpg'
> Pic[3] = 'gecko.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=crossFadeDuratio
n)";
> 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>
>
> <BODY Background=../graphics/grayback.jpg onLoad="runSlideShow()">
> <center><BR><BR>
> <table border="0" cellpadding="0" cellspacing="0">
> <tr>
> <td id="VU" height=190 width=330>
> <img src="toad.jpg" name='SlideShow' width=330 height=190>
> </td>
> </tr>
> </table>
>
>
> </center>
> </BODY>
> </HTML>
>
>
>
>
>
>
> "jack" <(E-Mail Removed)> wrote in message
> news:40cee23d$0$19657$(E-Mail Removed)...
> > Thanks for the reply, but I am afraid I did not adequately describe

what I
> > am looking for. I would like to incorporate a spot on a page where I

can
> > display a picture (that's the easy part). I would like to then have

this
> > picture change every 5 seconds to a new picture, and create a loop of 6
> > total pictures. Thus, when the page is open, a portion of the display

(the
> > picture) will continuously change. Thanks for any ideas...
> > Jack
> >
> >
> >
> > "Andrew Murray" <(E-Mail Removed)> wrote in message
> > news:40ced1b0$0$28937$(E-Mail Removed)...
> > > an animated gif (?) or www.hotscripts.com or

> > http://internet.javascript.com
> > > should have an 'image rotator' script.
> > >
> > > "jack" <(E-Mail Removed)> wrote in message
> > > news:40cec947$0$19655$(E-Mail Removed)...
> > > > I would like to create an element in a page in which a picture

changes
> > > > automatically every 5 seconds or so (a loop of six pictures). How

could
> > I
> > > > accomplish this?
> > > > Thanks,
> > > > Jack
> > > >
> > > >
> > >
> > >

> >
> >

>
>
>
> [microsoft.public.frontpage.client]



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically swapping out one word for another =?Utf-8?B?TU5B?= Microsoft Word Document Management 1 16th Jul 2007 05:10 AM
How get pictures to come in automatically? Woody Microsoft Outlook 1 30th Mar 2006 08:13 PM
Help - Pictures in my ppt presentation are switching / swapping to other slides Bill Bixby Microsoft Powerpoint 1 17th Oct 2005 10:39 PM
Swapping Pictures =?Utf-8?B?RHJldw==?= Microsoft Frontpage 2 27th Jun 2004 08:44 PM
swapping pictures effect jaycee Microsoft Frontpage 2 3rd Feb 2004 04:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 PM.