Imbedding a random image from gallery on an HTML page
ym1973
Joined: 2007-01-18
Posts: 1 |
![]() |
I've read a lot of the forums to get me up and going and I've manage to tweak my gallery to how I want it. (Thanks all!) I want to do one last thing and get a random image from one of my albums on my front page (it is in html) of my website that changes every time someone visits it. Is this possible? Thanks in advance and thanks to all the help I've gotten thus far by just reading the forums. -Y |
|
seaus
Joined: 2007-02-15
Posts: 24 |
![]() |
I would love to know how to do that as well. I want a random image to be displayed in the intro page of my web site |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
I have a flash minislideshow that may be what you are looking for. |
|
matosale
![]()
Joined: 2006-11-05
Posts: 15 |
![]() |
Hi! I've tried this without any luck <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>TEST</title> </head> <body><?php @readfile('http://cholito.org/galeria/main.php?g2_view=imageblock.External&g2_blocks=randomImage'); ?></body> </html> Also, the content of my .htaccess is this: AddType application/x-httpd-php .html .htm AddHandler application/x-httpd-php .html .htm removeHandler server-parsed htm html xhtml shtml See it for yourself: http://cholito.org/test/ BTW if I use the file as index.html it shows a 404 page, if I use index.php it shows the file Any advice will be appreciated! |
|
matosale
![]()
Joined: 2006-11-05
Posts: 15 |
![]() |
Well, yeah, the server has the 1.3.37 version. I just asked if they are going to upgrade soon ;) Thank for your help thou |
|