Random Pictures

  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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.
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

You should probably check out http://www.dynamicdrive.com
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

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.
  • whatmistxfle
  • Born
  • Born
  • whatmistxfle
  • Posts: 1

Post 3+ Months Ago

thanks this is really whatlikesit12345 i will look into it
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

do you want your name changed to that? Bigwebmaster can
do it of you want. Just send him a PM.
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

no i was @ a friends house and i didn't want to login as me
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

ok :)
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

how do i delete that account?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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!
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

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
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

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>";
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

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 82 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.