Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 09-07-2006, 03:15 PM   #1 (permalink)
Hardware Tech Team
 
95five-0's Avatar
 
Join Date: Dec 2004
Location: Corinth, TX
Posts: 1,339
OS: 2000/XP/2003/Vista/2008


Send a message via MSN to 95five-0 Send a message via Yahoo to 95five-0
change picture

Hey guys I was windering if anyone knew of a way, with out flash, to make an image change when someone refreshes a page. I have four images that I would like to rotate everytime someone visits the page. Thanks.
__________________

"If it's really a supercomputer, how come the bullets don't bounce off when I shoot it ?"

<<PC Pitstop>><< AVG Free>><<Spybot>><<Everest 2.0>><<Trend Micro House Call>><<HijackThis How-to>>
95five-0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Sponsored Links
Old 09-08-2006, 10:41 PM   #2 (permalink)
Manager Emeritus
 
v-six's Avatar
 
Join Date: Sep 2004
Location: High Falls, NY
Posts: 2,073
OS: OS X for mac, XP Pro for PC


Send a message via AIM to v-six
php with cookies would work, or just a random script, either of those an option?
v-six is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 09-09-2006, 09:46 PM   #3 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,498
OS: Windows Server 2003

My System

I know of a javascript code from javascript.internet.com and I know of a PHP script that uses cases.

Here is the one I recommend (php):
HTML Code:
<?php
srand( microtime() * 1000000 );
$num = rand( 1, 3 );
// change the 4 to the total number of ads you have
switch( $num )
{
// These are the banners
case 1 : $img="image url"; $url="link url"; break;
case 2 : $img="image url"; $url="link url"; break;
case 3 : $img="image url"; $url="link url"; break;
// for another ad just copy one of the above code and change the 4 in rand( 1, 4)
}
// This is the output script
$banner = "<center><a href=\"$url\" target='_blank' alt='Advertisement'> ";
$banner.= "<img src=\"$img\" ";
$banner.="border=\"0\" alt=\"Click me!\"></center>";
$banner.="</a>";
echo( $banner );
?>
__________________

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 01:57 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82