Current location: Hot Scripts Forums » General Community » Script Requests » website script help (dunno where to post)


website script help (dunno where to post)

Reply
  #1 (permalink)  
Old 07-29-04, 08:31 AM
URACarcass URACarcass is offline
New Member
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question website script help (dunno where to post)

I have looked, and looked for some kind of script in any language that would teach me how to make a little area on my website that has quotes, and everytime my visitor visits the page again another quote shows up. Can someone please help me?
Reply With Quote
  #2 (permalink)  
Old 07-29-04, 12:06 PM
thecodingmonkey thecodingmonkey is offline
New Member
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #3 (permalink)  
Old 07-29-04, 09:15 PM
JasonMichael's Avatar
JasonMichael JasonMichael is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Talking

Copy and paste this into your HTML, if your server supports PHP.... Enjoy.
<?
$numbers = range(1,3);
srand((float)microtime() * 1000000);
shuffle($numbers);
$number = $numbers[0];
// put your quotes here
$quote[1]="\"Go West Young Man\" - Johnny Walker";
$quote[2]="\"What you talkin about Fool?!\" - Mr. T (A-Team)";
$quote[3]="\"Play it again, Sam\" - Humphrey Bogart (Casablanca)";

echo $quote[$number]
?>
__________________
www.JMRTechnet.com - PHP Tutorials and More!
Reply With Quote
  #4 (permalink)  
Old 07-31-04, 11:34 AM
snaip's Avatar
snaip snaip is offline
iNET Interactive
 
Join Date: Nov 2003
Posts: 997
Thanks: 2
Thanked 7 Times in 6 Posts
[Moving to Script Request]

Please post in the appropriate forum section next time... Thanks...
__________________
Regards,
Ahmad Permessur
Team HotScripts
Reply With Quote
  #5 (permalink)  
Old 07-31-04, 11:48 AM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Code:

$quote = array();


$quote[] = 'Quote 1';
$quote[] = 'Quote 2';
$quote[] = 'Quote 2';

$rand_quote array_rand($quote);

echo 
$quote[$rand_quote]; 
__________________
New beta project: GFX-PRO.ATH.CX
Description: GFX-PRO a great new project that anyone can and setup in less then a minute. [ More info ]
Website: http://gfx-pro.ath.cx
Status: Online
http://gfx-pro.ath.cx/sig.png
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
Creating Website Script Problem Dainbramaged05 PHP 4 06-30-04 12:29 PM
Looking for a good classified ads script for a yachting website! yacht Script Requests 3 05-02-04 09:02 PM
Need help ...copy and post script worlok Script Requests 2 12-23-03 12:20 AM
[SOLVED] Website buider script ? Nico Script Requests 0 07-11-03 06:33 PM


All times are GMT -5. The time now is 10:47 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.