Random Pictures

  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post January 3rd, 2004, 1:44 pm

I would like to know a code that would let me have an imgae come up every day in a certian area with out me changing it. like a random picture but it will change every 24 hours. any help
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 3rd, 2004, 1:44 pm

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post January 3rd, 2004, 1:50 pm

anything that can return the date, or time, or day (Javascript, ActionScript, etc.) could be used to base a change like that. How big is your pool of images going to be?

I know you're looking for a code snippet. sorry. I've been doing child care all day, and my brain is mush.
- dM
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 25, 2003
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)
  • Status: Offline

Post January 3rd, 2004, 1:58 pm

You should probably check out http://www.dynamicdrive.com
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post January 3rd, 2004, 2:24 pm

ask bigwebmaster about his rotator script. it does everything
you need and more. You set the images in a dir, specify the
amount of time you want it to display before changing, and
does so automatically. I've used it for years, I love it.
UNFLUX.FOTO
  • whatmistxfle
  • Born
  • Born
  • No Avatar
  • Joined: Jan 01, 2004
  • Posts: 1
  • Status: Offline

Post January 3rd, 2004, 2:37 pm

thanks this is really whatlikesit12345 i will look into it
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post January 3rd, 2004, 4:37 pm

do you want your name changed to that? Bigwebmaster can
do it of you want. Just send him a PM.
UNFLUX.FOTO
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post January 3rd, 2004, 4:41 pm

no i was @ a friends house and i didn't want to login as me
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post January 3rd, 2004, 4:45 pm

ok :)
UNFLUX.FOTO
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post January 3rd, 2004, 4:52 pm

how do i delete that account?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post January 3rd, 2004, 7:39 pm

I am sure bwm can get on top of deleting it if you pm him. But just for future referense phpBB is very secure and even logging in on public stations won't harm your account as long as you logout when you're finished!
Pixel Acres V2
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post January 4th, 2004, 3:31 pm

here is the code i have right now. it isn't working even though i am pritty sure i followed the directions.


Code: [ Select ]
<SCRIPT LANGUAGE="JavaScript">

<!-- You will need 31 images named 1.jpg through 31.jpg -->
<!--    // start of script
    // code by Joe Burns
    var dt = new Date();
    var hr = dt.getDate();
    var msg="<IMG SRC=image"+hr+".jpg>";
    document.write(msg);
<!-- end -->
</SCRIPT>
  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!-- You will need 31 images named 1.jpg through 31.jpg -->
  3. <!--    // start of script
  4.     // code by Joe Burns
  5.     var dt = new Date();
  6.     var hr = dt.getDate();
  7.     var msg="<IMG SRC=image"+hr+".jpg>";
  8.     document.write(msg);
  9. <!-- end -->
  10. </SCRIPT>
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post January 4th, 2004, 4:10 pm

As that script is written your images would have to be named image1.jpg not 1.jpg.

Rather than renaming all your images you could just change the line in the script to:
Code: [ Select ]
  var msg="<IMG SRC="+hr+".jpg>";
Free Programming Resources
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post January 4th, 2004, 4:23 pm

to late i named the images 1.jpg

i will just add ur snippit into the code. or i will just rename them. i did it while i had nothing to do

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 133 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.