HighDots Forums  

stepping through pics or updating a pic on a page

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss stepping through pics or updating a pic on a page in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric
 
Posts: n/a

Default stepping through pics or updating a pic on a page - 05-16-2006 , 02:58 PM






I have a dir full of pics and each one is Pic1.jpg Pic2.jpg etc etc.
I want to have a page showing only 1 pic and a navigator that will let me
step to the next pic so that if you are viewing pic1 and you click the next
arrow button Pic1 gets replaced with Pic2 and so on. It would be nice if
the whole page didnt have to refresh too.
Can anyone show me how to do that?
Thanks
Eric


Reply With Quote
  #2  
Old   
Eric
 
Posts: n/a

Default Re: stepping through pics or updating a pic on a page - 05-16-2006 , 04:41 PM






Eric wrote:

Quote:
I have a dir full of pics and each one is Pic1.jpg Pic2.jpg etc etc.
I want to have a page showing only 1 pic and a navigator that will let me
step to the next pic so that if you are viewing pic1 and you click the
next arrow button Pic1 gets replaced with Pic2 and so on. It would be nice
if the whole page didnt have to refresh too.
Can anyone show me how to do that?
Thanks
Eric
Well, i found some sample code to use, it works ok, but i have one more
problem. On my server there can be up to 576 time sequenced pics such as
Pic1.jpg...Pic576.jpg
But at times there may only be, say, up to Pic200.jpg. How can i determine
the top available picnumber using javascript?
Thanks
Eric


Reply With Quote
  #3  
Old   
Wayne Dobson
 
Posts: n/a

Default Re: stepping through pics or updating a pic on a page - 05-19-2006 , 09:59 AM



"Eric" <nospam (AT) email (DOT) com> wrote

Quote:
Eric wrote:

I have a dir full of pics and each one is Pic1.jpg Pic2.jpg etc etc.
I want to have a page showing only 1 pic and a navigator that will let
me
step to the next pic so that if you are viewing pic1 and you click the
next arrow button Pic1 gets replaced with Pic2 and so on. It would be
nice
if the whole page didnt have to refresh too.
Can anyone show me how to do that?
Thanks
Eric

Well, i found some sample code to use, it works ok, but i have one more
problem. On my server there can be up to 576 time sequenced pics such as
Pic1.jpg...Pic576.jpg
But at times there may only be, say, up to Pic200.jpg. How can i determine
the top available picnumber using javascript?
Thanks
Eric
An "error" event will fire when you try to load a reference that doesn't
exist.

--
Wayne
AKA "Dobbie the House Elf"




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.