What is the code to do this???
Posted: 09 September 2004 04:18 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  64
Joined  07-12-2004

If you look at ABC New’s website located at http://abcnews.go.com/ you’ll see that the headline picture changes about every two or three seconds. Can anyone tell me what the code is that I would use if I wanted to do the same thing and cycle through several pictures on my website at certain intervals? Thanks!

Profile
 
 
Posted: 09 September 2004 04:26 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6077
Joined  08-04-2002

schumert...They are using Flash. Just creating a simple Flash slide show and embedding it. In their case they are probably auto generating it from a database but a person wouldn’t have to.
You could also do it with an animated GIF.
There are also Javascripts for this type of thing.

Profile
 
 
Posted: 09 September 2004 04:43 AM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6077
Joined  08-04-2002

Not quite the same but an option…
Create a new weblog where each entry contains an image link. In your template, use something like this…
{exp:weblog:entries weblog=“weblogName” orderby=“random” limit=“1”}
<div id=“whatever”>
{ImageFile}
<- Name of field containing the image location
</div>
{/exp:weblog:entries}

This will show a different image each time a visitor reloads the page.
I do it here with the graphic design statements in the center. Refresh my page and you should see a different one each time (there are 15 different ones). Of course, it’s random so every once in awhile you’ll see the same one picked twice in a row.
—————
Now, that doesn’t auto rotate like ABC. You could add a “META-Refresh” tag to your header but that will reload the whole page…probably less then desirable.

Profile
 
 
Posted: 14 September 2004 08:23 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  59
Joined  02-25-2002

PXLated,

This is a pretty ingenious way to randomize content! Every time I come to the forum I am amazed by the flexibility of EE—and the mental flexibility of many of its users wink

Just add some categories to this weblog and you have a full-blowned random content distributor…

Profile
 
 
Posted: 14 September 2004 09:32 AM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6077
Joined  08-04-2002

Yan...
Ya, it’s pretty flexible. With a little creative thinking, there’s usually a way to do it. Not always but then there are plugins (and hopefully modules) grin

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64944 Total Logged-in Users: 66
Total Topics: 81924 Total Anonymous Users: 43
Total Replies: 440353 Total Guests: 291
Total Posts: 522277    
Members ( View Memberlist )