Hi everyone,
I'm wanting to have a logo that changes on some sort of interval.. Either on every page load, or on a daily/weekly basis... Is this doable? Would I have to use something like Javascript? Or is there a better way?
I've never dealt with Javascript, but I'm thinking I could make create an array with the logo images.. then have it cycle through them somehow..
Thanks for any info..
rotating image
Started by Root23, Nov 03 2010 12:31 AM
4 replies to this topic
#1
Posted 03 November 2010 - 12:31 AM
|
|
|
#2
Posted 03 November 2010 - 01:07 AM
Do you have server-side scripts in your webpage and in which language?
If you do have them, that is the location where to put image rotation.
If you do not, then you can place a client-side script (like Javascript) which sets image URL on page load, but that may leave bad impression on the visitor (image loads after the page is already rendered).
If you do have them, that is the location where to put image rotation.
If you do not, then you can place a client-side script (like Javascript) which sets image URL on page load, but that may leave bad impression on the visitor (image loads after the page is already rendered).
#3
Posted 03 November 2010 - 10:16 AM
Thanks for the tip about the javascript.
I'm not sure what scripts are available on the web server.. Currently I'm just developing on my desktop for someone.
I'm not sure what scripts are available on the web server.. Currently I'm just developing on my desktop for someone.
#4
Posted 03 November 2010 - 06:39 PM
I am not sure, you can name your images 1 through 7 and cycle them each day of the week, I believe like this, I am not so sure of the syntax:
<script type="text/javascript">
var d=new Date();
document.write('<img src="' + d.getDay() + '.png"/>');
</script>
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#5
Posted 03 November 2010 - 07:14 PM


Sign In
Create Account



Back to top









