mattboy_slim
04-11-2007, 08:09 PM
http://portal.labellasera.com/screensaver.asp
OK, forgive me if I'm not using the correct language, but I have an ad-display system where I need to get all the current records in the recordset and loop through them in some sort of an array. When the last record is reached, I need to go back to the first record.
For example, say there are 3 records:
===================
f_ID 2
f_Name BMW Z4
f_Priority 44
f_ID 5
f_Name BMW Motorcycle
f_Priority 17
f_ID 12
f_Name BMW 5-Series
f_Priority 99
Here is my current code, (http://portal.labellasera.com/screensaver.htm) which I have somewhat commented (in green). My current problem is, if there are records missing in between, (1, 2, 3, 5, 6, 7), then it will still get that image, even though it doesn't exist. So somehow, hopefully with your extreme help (I haven't even gotten a slight clue), I can get this thing working.
Overall, what I need to acheive is to get the first good record, then redirect to the next for 'x' seconds, then redirect to the next for 'x' seconds, then redirect to the last record for 'x' seconds, then go back to the first record. Any help you can give is greatly appreciated.
Thanks in advance,
Matt
OK, forgive me if I'm not using the correct language, but I have an ad-display system where I need to get all the current records in the recordset and loop through them in some sort of an array. When the last record is reached, I need to go back to the first record.
For example, say there are 3 records:
===================
f_ID 2
f_Name BMW Z4
f_Priority 44
f_ID 5
f_Name BMW Motorcycle
f_Priority 17
f_ID 12
f_Name BMW 5-Series
f_Priority 99
Here is my current code, (http://portal.labellasera.com/screensaver.htm) which I have somewhat commented (in green). My current problem is, if there are records missing in between, (1, 2, 3, 5, 6, 7), then it will still get that image, even though it doesn't exist. So somehow, hopefully with your extreme help (I haven't even gotten a slight clue), I can get this thing working.
Overall, what I need to acheive is to get the first good record, then redirect to the next for 'x' seconds, then redirect to the next for 'x' seconds, then redirect to the last record for 'x' seconds, then go back to the first record. Any help you can give is greatly appreciated.
Thanks in advance,
Matt