PC Review


Reply
Thread Tools Rate Thread

How do I display different pictures each time a page is visited?

 
 
=?Utf-8?B?Q3JlZWtzaWRl?=
Guest
Posts: n/a
 
      5th Aug 2005
I have a website and would like to display a variety of cartoons on the home
page - in one location that change when the page is revisited or refreshed.
 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      5th Aug 2005
Requires some server side scripting.

If you are hosted on an Apache / UNIX server, with the web masters CPanel,
There is probably a built in feature that will do just what you want.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Creekside" <(E-Mail Removed)> wrote in message
news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
> I have a website and would like to display a variety of cartoons on the home
> page - in one location that change when the page is revisited or refreshed.



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      5th Aug 2005
No it doesn't.

Put this in the head of the document -

<script type="text/javascript">
<!--
function displayRandomImage(imageName,array){
document.images[imageName].src=array[new Date().getTime()%array.length];
}
urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
// load this line with your image names and paths
//-->
</script>

and then put this in the body of the page -

<body onLoad="displayRandomImage('csmember',urls)">
<!-- csmember is the NAME of the image receiving the random changes -->



--
Murray
============

"Steve Easton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Requires some server side scripting.
>
> If you are hosted on an Apache / UNIX server, with the web masters CPanel,
> There is probably a built in feature that will do just what you want.
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Creekside" <(E-Mail Removed)> wrote in message
> news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
>> I have a website and would like to display a variety of cartoons on the
>> home
>> page - in one location that change when the page is revisited or
>> refreshed.

>
>



 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      5th Aug 2005
Yes it does, want a sample??



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> No it doesn't.
>
> Put this in the head of the document -
>
> <script type="text/javascript">
> <!--
> function displayRandomImage(imageName,array){
> document.images[imageName].src=array[new Date().getTime()%array.length];
> }
> urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
> // load this line with your image names and paths
> //-->
> </script>
>
> and then put this in the body of the page -
>
> <body onLoad="displayRandomImage('csmember',urls)">
> <!-- csmember is the NAME of the image receiving the random changes -->
>
>
>
> --
> Murray
> ============
>
> "Steve Easton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Requires some server side scripting.
> >
> > If you are hosted on an Apache / UNIX server, with the web masters CPanel,
> > There is probably a built in feature that will do just what you want.
> >
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > .......................with a computer
> >
> > "Creekside" <(E-Mail Removed)> wrote in message
> > news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
> >> I have a website and would like to display a variety of cartoons on the
> >> home
> >> page - in one location that change when the page is revisited or
> >> refreshed.

> >
> >

>
>



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      5th Aug 2005
Try mine. Client-side all the way.

--
Murray
============

"Steve Easton" <(E-Mail Removed)> wrote in message
news:O4h%(E-Mail Removed)...
> Yes it does, want a sample??
>
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Murray" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> No it doesn't.
>>
>> Put this in the head of the document -
>>
>> <script type="text/javascript">
>> <!--
>> function displayRandomImage(imageName,array){
>> document.images[imageName].src=array[new Date().getTime()%array.length];
>> }
>> urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
>> // load this line with your image names and paths
>> //-->
>> </script>
>>
>> and then put this in the body of the page -
>>
>> <body onLoad="displayRandomImage('csmember',urls)">
>> <!-- csmember is the NAME of the image receiving the random changes -->
>>
>>
>>
>> --
>> Murray
>> ============
>>
>> "Steve Easton" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Requires some server side scripting.
>> >
>> > If you are hosted on an Apache / UNIX server, with the web masters
>> > CPanel,
>> > There is probably a built in feature that will do just what you want.
>> >
>> >
>> > --
>> > Steve Easton
>> > Microsoft MVP FrontPage
>> > 95isalive
>> > This site is best viewed............
>> > .......................with a computer
>> >
>> > "Creekside" <(E-Mail Removed)> wrote in message
>> > news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
>> >> I have a website and would like to display a variety of cartoons on
>> >> the
>> >> home
>> >> page - in one location that change when the page is revisited or
>> >> refreshed.
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      5th Aug 2005
I meant the CPanel has the feature.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> No it doesn't.
>
> Put this in the head of the document -
>
> <script type="text/javascript">
> <!--
> function displayRandomImage(imageName,array){
> document.images[imageName].src=array[new Date().getTime()%array.length];
> }
> urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
> // load this line with your image names and paths
> //-->
> </script>
>
> and then put this in the body of the page -
>
> <body onLoad="displayRandomImage('csmember',urls)">
> <!-- csmember is the NAME of the image receiving the random changes -->
>
>
>
> --
> Murray
> ============
>
> "Steve Easton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Requires some server side scripting.
> >
> > If you are hosted on an Apache / UNIX server, with the web masters CPanel,
> > There is probably a built in feature that will do just what you want.
> >
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > .......................with a computer
> >
> > "Creekside" <(E-Mail Removed)> wrote in message
> > news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
> >> I have a website and would like to display a variety of cartoons on the
> >> home
> >> page - in one location that change when the page is revisited or
> >> refreshed.

> >
> >

>
>



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      5th Aug 2005
Sorry - you lost me....

--
Murray
============

"Steve Easton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I meant the CPanel has the feature.
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Murray" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> No it doesn't.
>>
>> Put this in the head of the document -
>>
>> <script type="text/javascript">
>> <!--
>> function displayRandomImage(imageName,array){
>> document.images[imageName].src=array[new Date().getTime()%array.length];
>> }
>> urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
>> // load this line with your image names and paths
>> //-->
>> </script>
>>
>> and then put this in the body of the page -
>>
>> <body onLoad="displayRandomImage('csmember',urls)">
>> <!-- csmember is the NAME of the image receiving the random changes -->
>>
>>
>>
>> --
>> Murray
>> ============
>>
>> "Steve Easton" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Requires some server side scripting.
>> >
>> > If you are hosted on an Apache / UNIX server, with the web masters
>> > CPanel,
>> > There is probably a built in feature that will do just what you want.
>> >
>> >
>> > --
>> > Steve Easton
>> > Microsoft MVP FrontPage
>> > 95isalive
>> > This site is best viewed............
>> > .......................with a computer
>> >
>> > "Creekside" <(E-Mail Removed)> wrote in message
>> > news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
>> >> I have a website and would like to display a variety of cartoons on
>> >> the
>> >> home
>> >> page - in one location that change when the page is revisited or
>> >> refreshed.
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      5th Aug 2005
LOL.

When you said no it doesn't, I thought you were talking about the CPanel

Hey, it's Friday, I'm easily confused.

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Sorry - you lost me....
>
> --
> Murray
> ============
>
> "Steve Easton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I meant the CPanel has the feature.
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > .......................with a computer
> >
> > "Murray" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> >> No it doesn't.
> >>
> >> Put this in the head of the document -
> >>
> >> <script type="text/javascript">
> >> <!--
> >> function displayRandomImage(imageName,array){
> >> document.images[imageName].src=array[new Date().getTime()%array.length];
> >> }
> >> urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
> >> // load this line with your image names and paths
> >> //-->
> >> </script>
> >>
> >> and then put this in the body of the page -
> >>
> >> <body onLoad="displayRandomImage('csmember',urls)">
> >> <!-- csmember is the NAME of the image receiving the random changes -->
> >>
> >>
> >>
> >> --
> >> Murray
> >> ============
> >>
> >> "Steve Easton" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> > Requires some server side scripting.
> >> >
> >> > If you are hosted on an Apache / UNIX server, with the web masters
> >> > CPanel,
> >> > There is probably a built in feature that will do just what you want.
> >> >
> >> >
> >> > --
> >> > Steve Easton
> >> > Microsoft MVP FrontPage
> >> > 95isalive
> >> > This site is best viewed............
> >> > .......................with a computer
> >> >
> >> > "Creekside" <(E-Mail Removed)> wrote in message
> >> > news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
> >> >> I have a website and would like to display a variety of cartoons on
> >> >> the
> >> >> home
> >> >> page - in one location that change when the page is revisited or
> >> >> refreshed.
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      6th Aug 2005
it can also be done with Javascript.

"Steve Easton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Requires some server side scripting.
>
> If you are hosted on an Apache / UNIX server, with the web masters CPanel,
> There is probably a built in feature that will do just what you want.
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Creekside" <(E-Mail Removed)> wrote in message
> news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
>> I have a website and would like to display a variety of cartoons on the
>> home
>> page - in one location that change when the page is revisited or
>> refreshed.

>
>



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      6th Aug 2005
We have now come full circle.... 8)

--
Murray
============

"Andrew Murray" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> it can also be done with Javascript.
>
> "Steve Easton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Requires some server side scripting.
>>
>> If you are hosted on an Apache / UNIX server, with the web masters
>> CPanel,
>> There is probably a built in feature that will do just what you want.
>>
>>
>> --
>> Steve Easton
>> Microsoft MVP FrontPage
>> 95isalive
>> This site is best viewed............
>> .......................with a computer
>>
>> "Creekside" <(E-Mail Removed)> wrote in message
>> news:00F62C3B-37E6-44AF-99F0-(E-Mail Removed)...
>>> I have a website and would like to display a variety of cartoons on the
>>> home
>>> page - in one location that change when the page is revisited or
>>> refreshed.

>>
>>

>
>



 
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
IE 6 doesn't display everything on some website I visited =?Utf-8?B?RXJpYw==?= Windows XP Internet Explorer 3 7th Nov 2005 09:04 PM
What time a Web page is visited? mladner Windows XP Help 1 15th Jul 2005 05:34 PM
Can I track what time a page was visited? =?Utf-8?B?c3RvcGhl?= Windows XP Internet Explorer 1 2nd Oct 2004 01:30 AM
pictures do not display in open page tim cedar Windows XP Internet Explorer 1 8th Oct 2003 04:12 PM
default home-page won't open: another recently visited page does Greg Windows XP Internet Explorer 1 22nd Sep 2003 01:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:39 PM.