Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / July 2009



Tip: Looking for answers? Try searching our database.

Displaying/Changing Pictures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Copeland - 09 Jul 2009 20:30 GMT
I am creating a Web site for a local organization, and one of the
requirements is to (randomly) display a series of pictures of important
buildings and features of the area on the main page.  
  I assume I should to this sort of processing with JavaScript, but I
don't know if that's the easiest or best method.  If it is, I don't have
any idea _how_ I should approach this task.  Any thoughts?  TIA
David Mark - 09 Jul 2009 22:22 GMT
>    I am creating a Web site for a local organization, and one of the
> requirements is to (randomly) display a series of pictures of important
> buildings and features of the area on the main page.

As in a slide show?

>    I assume I should to this sort of processing with JavaScript, but I
> don't know if that's the easiest or best method.  If it is, I don't have
> any idea _how_ I should approach this task.  Any thoughts?  TIA

If you have no idea how, you need to find someone who does.  If not, I
recommend you interpret a series to mean one or more adjacent images.

If you are very lucky, somebody here might write it for you.  Keep in
mind that they may not be around when and if it needs maintenance.
Evertjan. - 09 Jul 2009 22:24 GMT
Mike Copeland wrote on 09 jul 2009 in comp.lang.javascript:

>    I am creating a Web site for a local organization, and one of the
> requirements is to (randomly) display a series of pictures of important
> buildings and features of the area on the main page.  
>    I assume I should to this sort of processing with JavaScript, but I
> don't know if that's the easiest or best method.

This can best [subjective best!] be done by serverside programming in any
of the serverside languages available on your server.

Serverside Javascript could be one of those if the server is ASP enabled.

> If it is, I don't have
> any idea _how_ I should approach this task.  Any thoughts?

Yes, learn Javascript, like we all did.

If you don't want to do that, better take on a paid professional,
who can cope with the "requirements" of youer organisation.

Signature

Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Dr J R Stockton - 10 Jul 2009 14:52 GMT
In comp.lang.javascript message <MPG.24bff354aa7a1159989769@news.cox.net
>, Thu, 9 Jul 2009 12:30:53, Mike Copeland <mrc2323@cox.net> posted:
>   I am creating a Web site for a local organization, and one of the
[quoted text clipped - 3 lines]
>don't know if that's the easiest or best method.  If it is, I don't have
>any idea _how_ I should approach this task.  Any thoughts?  TIA

In that case, you should read the newsgroup FAQ on Random.

<http://jibbering.com/faq/index.html> and
<http://www.jibbering.com/faq/> are down at present; $clj-faq.htm on my
site is a recent copy.

It's not clear whether the pictures are to be all displayed at once, a
series of smallish images on the page, or are to be displayed one at a
time, like a slide show.  A Web search   JavaScript "random slide show"
might help; it soon enough finds "Indefinite Random Slide Show" in
<URL:http://www.merlyn.demon.co.uk/js-randm.htm> which also has "Groups
of Random Images".

Signature

(c) John Stockton, nr London UK.   ?@merlyn.demon.co.uk     IE7 FF3 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

Mike Copeland - 10 Jul 2009 23:22 GMT
> >   I am creating a Web site for a local organization, and one of the
> >requirements is to (randomly) display a series of pictures of important
[quoted text clipped - 15 lines]
> <URL:http://www.merlyn.demon.co.uk/js-randm.htm> which also has "Groups
> of Random Images".

  Sorry, John, I didn't make that clear.  The goal here is to have
_one_ picture show at a time, in a fixed location of the page.  Yes, I'd
like it to be a randomly selected picture, and ultimately it would be
nice to have a different picture show up in, say, 10 seconds if the user
stayed on that page for a long time (slow readers, etc.).
  It's really only (what we call here) "eye candy" for new visitors to
our site, and we expect the menu links to be used when users figure out
what the site is all about.
  Thanks for your thoughts - will the FAQ show me something about using
Random in the way I'm requesting?  8<}}
Dr J R Stockton - 11 Jul 2009 14:00 GMT
>> >   I am creating a Web site for a local organization, and one of the
>> >requirements is to (randomly) display a series of pictures of important
[quoted text clipped - 26 lines]
>   Thanks for your thoughts - will the FAQ show me something about using
>Random in the way I'm requesting?  8<}}

Well, the general idea was that you should read the FAQ, at one of the
three locations indicated, as well as the other link given.

Signature

(c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
Web  <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

Peter Michaux - 12 Jul 2009 03:45 GMT
>    I am creating a Web site for a local organization, and one of the
> requirements is to (randomly) display a series of pictures of important
> buildings and features of the area on the main page.  
>    I assume I should to this sort of processing with JavaScript, but I
> don't know if that's the easiest or best method.  If it is, I don't have
> any idea _how_ I should approach this task.  Any thoughts?  TIA

I don't think anyone here will write up a solution for you. That is
what you're being paid to do. ;-)

You'll probably need to call the following functions in JavaScript.

https://developer.mozilla.org/en/DOM/window.setInterval

https://developer.mozilla.org/en/DOM/document.getElementById

If you try some experiments and post a 30 line or less example of what
you tried you are likely to get more feedback here.

Peter
Dr J R Stockton - 12 Jul 2009 21:48 GMT
In comp.lang.javascript message <922525c8-d0f6-4719-b48c-1dd2b761e211@d4
g2000prc.googlegroups.com>, Sat, 11 Jul 2009 19:45:18, Peter Michaux
<petermichaux@gmail.com> posted:
>>    I am creating a Web site for a local organization, and one of the
>> requirements is to (randomly) display a series of pictures of important
[quoted text clipped - 5 lines]
>I don't think anyone here will write up a solution for you. That is
>what you're being paid to do. ;-)

That's a fairly unreasonable thing top say; I did the essentials of what
he needs some while ago, and it is on my Web site.  Granted, my pictures
are of low entertainment value, being Windows Paint digits; but images
they are, technically.  The OP needs only to take a copy of the page and
any include files, remove what is not needed, and use his own images.

Signature

(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk  Turnpike v6.05  MIME.
Web  <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links;
 Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.