- This topic is empty.
-
AuthorPosts
-
November 20, 2009 at 10:12 pm #26873cre8tive1Member
Hi all,
I’m curious which plug-in you all would use to load a new image each time a page is visited. A sample of what I’m looking for is here http://www.joemcnally.com/blog/
A new image loads at the very top of the page each time the page is reloaded. I’m looking for the most simple method of accomplishing this. If the images were selected randomly from a folder that would be sweet!
Any input appreciated.
Thanks,
jr
November 20, 2009 at 11:57 pm #66856AshtonSandersParticipantI just do it manually…
I name all the images with the same name and a different number 1-10, then say:
/images/imgname<?= rand(1,10) ?>.jpg
I’m pretty sure that’s right…
November 21, 2009 at 3:16 pm #66888cre8tive1MemberThat’s a good option. I could change images without changing code. That is my real goal. To allow a client to update the images used in the rotator without having to adjust any code.
Anyone have any other options that they use for this scenario?
November 22, 2009 at 5:26 pm #66917cre8tive1MemberI’m not able to get <?= rand(1,3) ?> to work.
I’ve tried searching for the correct syntax but I’m not finding an answer. Any suggestions?
Here is the code I’m using:
Code:November 23, 2009 at 2:58 am #66939AshtonSandersParticipantHmmm
My first guess is that your server doesn’t allow short hand. Try this:
Code:November 23, 2009 at 9:54 am #66943cre8tive1MemberThanks!
I had tried <?php… but forgot to add "echo". I’m still getting the hang of php. The code works perfectly now.
Thanks again,
jr
November 23, 2009 at 1:32 pm #66946AshtonSandersParticipantExcellent [img]http://www.websitesinaflash.com/images/thumbsup.gif[/img]
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)- The forum ‘Other’ is closed to new topics and replies.