473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

cool script but how?

http://camacho.tv/index.php

When you click the picture banner on top of the page, it opens a new
picture. I really like this and I wish I could have it on my site.
I'm not really into programming and web development, but nonetheless, I'm
hoping that I can accomplish this with some sort of tool maybe?

Can anyone give me a tip on how to do this? Or do you know other sites where
you can see the same thing?

many thanks!
Kris
Jul 17 '05 #1
2 1601
Kris wrote:
http://camacho.tv/index.php

When you click the picture banner on top of the page, it opens a new
picture. I really like this and I wish I could have it on my site.
I'm not really into programming and web development, but nonetheless, I'm
hoping that I can accomplish this with some sort of tool maybe?

Can anyone give me a tip on how to do this? Or do you know other sites where
you can see the same thing?


It looks like it just randomly chooses a file to display when the PHP is
executed. I've done this before, and it goes something like this:

<?php
$select=array(
'image1.jpg',
'image2.jpg',
'image3.jpg',
);
$display_img=$select[array_rand($select,1)];
?>

--
Justin Koivisto - sp**@koivi.com
http://www.koivi.com
Jul 17 '05 #2
Kris wrote:

http://camacho.tv/index.php

When you click the picture banner on top of the page, it opens a new
picture. I really like this and I wish I could have it on my site.
I'm not really into programming and web development, but nonetheless, I'm
hoping that I can accomplish this with some sort of tool maybe?


Make a directory that contains only images you want to display.

Code stolen and mangled from Chung's post:
$file = array_rand(glob("path/to/files/*.jpg"));
echo '<a href="filename.php"><img src="'.$file.'"></a>';

Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Anthony Morris | last post by:
1) Visit the site: http://www.alexa.com/data/details/?url=google.com 2) Now move your mouse over one of the links marked "Site Info" under the section labeled "People who visit this page also...
6
by: Gordowey | last post by:
Where can I find this DIV effect. go to: http://www.amazon.com Put mouse over the text "See All 32 Product Categories" (Top-Middle)..it will open a window with a cool effect... does anyone...
6
by: Sundew Shin | last post by:
I think I can make a good interesting list of postings under this subject header, 'All browsers are cool but IE.' Anyway, the following code will show a table with an input box labeled, 'name',...
2
by: HeroinNO.4 | last post by:
Copy the code below and save in a .htm file, for example : 1.htm, then run it in browser, you'll see a cool count down timer ! If it doesn't work, you may open http://www.fillweb.com in IE and...
1
by: HeroinNO.4 | last post by:
Hello guys, sorry for my last version has a little "feature"(MS always call his bug "feature"), and now I fixed it and show the source to you all ! Just as the last version, copy the code below and...
2
by: HeroinNO.4 | last post by:
Hello guys, now the source code updated to November 06, 2006 00:00 GMT,and now I fixed it and show the source to you all ! Just as the last version, copy the code below and save in a .htm file, fox...
3
by: maya | last post by:
http://www.msnbc.msn.com/id/16673873/site/newsweek/ pls scroll down, on the left, near the middle, there is a select object above which it says "Newsweek Business Directory".. how do they get...
0
by: [Cool staff!||Hi! I think this need for || Help me | last post by:
http://con-cern.org/files/2007/5/xenical-21024312.html cheap xenical http://con-cern.org/files/2007/5/auto-21024411.html auto loan refinance ...
0
by: Very cool design! Useful information. Go on!,Very | last post by:
Very cool design! Useful information. Go on!,Very cool design! Useful information. Go on!,Very cool design! Useful information. Go on!
1
by: Paulo | last post by:
Hi, I need to do a vb.net main form wich calls others exes, but I would like to do a cool form with some circles, circle form... cool menus... Do you know any source / examples on internet with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.