Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Loading a random picture
Old 07-21-2007, 09:35 AM Loading a random picture
Experienced Talker

Posts: 44
Name: English Hentai Team
Trades: 0
Greetings.
I'm not even sure if this should be here, because I don't think this is possible without Javascript... I may be wrong though.

My website has an header. A field of the header has an image. What I'm trying to do is that the image displayed there varies. That is, the image there would rotate (or maybe be random) from a serie of other images (all the images would have the same size).

How can I do this?

Thanks.
__________________

Please login or register to view this content. Registration is FREE
ehentai is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2007, 09:52 AM Re: Loading a random picture
Defies a Status

Posts: 1,606
Trades: 0
You can do it with java, cgi, or php.

You might be able to do it with server parsed html pages but I can't figure out how.

If there is some trick for doing it with html, I have never heard of it.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 07-21-2007, 10:30 AM Re: Loading a random picture
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can't do it with HTML, you do have to use scripting. Javascript is probably the easiest and quickest method and there are tons of random image scripts out there.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-21-2007, 01:19 PM Re: Loading a random picture
Experienced Talker

Posts: 44
Name: English Hentai Team
Trades: 0
Yeah, that's what I thought. I'll use Javascript.
__________________

Please login or register to view this content. Registration is FREE
ehentai is offline
Reply With Quote
View Public Profile
 
Old 07-21-2007, 02:12 PM Re: Loading a random picture
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
You could do it with SSI, basing the picture to be displayed on the second, minute or hour, or all, that the page is loaded.

http://www.bignosebird.com/sdocs/echo.shtml
http://www.bignosebird.com/sdocs/browser.shtml

Combining those two should set you on the right track, should you prefer not to use any of the other methods.
RanaD is offline
Reply With Quote
View Public Profile
 
Old 07-21-2007, 05:19 PM Re: Loading a random picture
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
The difference between javascript and asp/php is whether the code runs in the browser, or at the server. JS will put less strain on your server and keep your site running faster as you scale up, but may become a limiting factor down the line, if you want this stuff served up from a database and with logging and whatnot. You might be able to upgrade your javascript to ajax and not have to change much, if you ever get to that point.

So I guess that's another vote for javascript, if there isn't any strong reason you need server-side functionality. And it doesn't sound like it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 07-24-2007, 10:26 PM Re: Loading a random picture
Skilled Talker

Latest Blog Post:
My book update
Posts: 97
Name: Eric
Location: Las Vegas
Trades: 0
I always use php and mysql to do any randomize stuff but if javascript is what you know then that will work!
__________________

Please login or register to view this content. Registration is FREE

Eric - M
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
peanutpad is offline
Reply With Quote
View Public Profile Visit peanutpad's homepage!
 
Reply     « Reply to Loading a random picture
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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 2.21174 seconds with 12 queries