Reply
New picture each day
Old 08-13-2005, 08:15 AM
Spud In Disguise's Avatar
Super Spam Talker

Posts: 790
Location: UK... where else?
Hey does anyone know any script I can use the achieve the following:

I have several pictures (many hundreds) that I would like to display on my homepage - a new one each day.

I have tried several scripts but many of them only allow for 7 images (one for each day of the week) or one for everyday in a month. Are there any scripts that will just accept a long list of images and keep displaying the next on a list every day until the list ends and it begins again?

If possible I would prefer to use JavaScript as the server this page is on does not support ASP or PHP - although I do have access to a server with ASP - but its difficult linking into it, if that makes sense.
__________________
thedaftclub.com - Daft Punk Fansite
www.recommendedmusicblog.com - Music Recommendation Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
When You Register, These Ads Go Away!
Old 08-13-2005, 08:20 AM
monkey's Avatar
Ultra Talker

Posts: 439
sounds like you need a custom script. i can point you to some people if you need.
monkey is offline
Reply With Quote
View Public Profile Visit monkey's homepage!
 
Old 08-13-2005, 08:25 AM
Spud In Disguise's Avatar
Super Spam Talker

Posts: 790
Location: UK... where else?
That would be useful, but I cant really pay anything :-(

Are there no scripts like this available anywhere?
__________________
thedaftclub.com - Daft Punk Fansite
www.recommendedmusicblog.com - Music Recommendation Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
Old 08-13-2005, 11:02 AM
NuWeb.co.uk's Avatar
NuWeb.co.uk is OFFLINE

Posts: 361
Code:
<?php

$today = date('l');

if (file_exists($image_folder."/".$today.".php")) {
echo "<img src=\"$image_folder/".$today.".php\">";
}
else {
echo "No image was found for $today";
}

?>
ok, so that code above displays if monday monday.php .. so now u need to create a randomisor kinda code thing.. Somoen allready posted a random code thing somewhere on the forum

So u use that, as monday.php to select random .gif's

.. rough codeing.. BUt you should be able to do it.
__________________
Zend PHP5 Certification Blog

NuWeb 10101101
NuWeb.co.uk is offline
Reply With Quote
View Public Profile Visit NuWeb.co.uk's homepage!
 
Old 08-13-2005, 11:16 AM
Spud In Disguise's Avatar
Super Spam Talker

Posts: 790
Location: UK... where else?
Sorry, I can't use PHP...
__________________
thedaftclub.com - Daft Punk Fansite
www.recommendedmusicblog.com - Music Recommendation Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
Old 08-13-2005, 03:29 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
What about Perl or Python?
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 08-13-2005, 05:50 PM
Spud In Disguise's Avatar
Super Spam Talker

Posts: 790
Location: UK... where else?
I don't think so. I could if I host it on a different server (which I can do) and then link into it somewhow, perhaps via an iframe or something.
__________________
thedaftclub.com - Daft Punk Fansite
www.recommendedmusicblog.com - Music Recommendation Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
Reply     « Reply to New picture each day
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15677 seconds with 12 queries