/    Sign up×
Community /Pin to ProfileBookmark

How can I make a Custom/Alternating welcome screen?

Hi!

While I was surfing the web I ran into quite an interesting website, namely of Compagnie Financière Richemont S.A. ([url]http://www.richemont.com/[/url]). The welcome screen differs each time you reload the page. I am quite curious how this is achieved.

I wasn’t able to detect a script or code in the HTML. Therefore I believe a different method must be used. I would greatly appreciate it if someone could tell me how to program such a feature!

Thanks.

Dante

?

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@PeOfEoNov 28.2003 — it was done with server side scripting.
Copy linkTweet thisAlerts:
@96turnerriNov 28.2003 — <script type="text/javascript">

var myimages=new Array()

function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("../images/home/copyright_2002_richemont_home<? echo $iRandom ?>_thebrands_on.gif","../images/home/copyright_2002_richemont_home<?echo $iRandom?>_investorinfo_on.gif","../images/home/copyright_2002_richemont_home<?echo $iRandom?>_companyprofile_on.gif","../images/home/copyright_2002_richemont_home<?echo $iRandom?>_careers_on.gif","../images/home/copyright_2002_richemont_home<?echo $iRandom?>_contact_on.gif","../images/copyright_2002_richemont_arrow_on.gif")

function goUrl(Selected) {

var newURL = Selected.options[Selected.selectedIndex].value ;

if (newURL!=" ") {

document.location.href = newURL;

}

}

</script>

contains PHP

96
Copy linkTweet thisAlerts:
@DanteAlighieriauthorNov 28.2003 — Thanks for the quick replies. I see your point. Is there a way I can reproduce this when my server supports .php? If so, could you shortly point out what I should do?

Thanks.

Dante

:rolleyes:
Copy linkTweet thisAlerts:
@PeOfEoNov 28.2003 — those code above should do it. You can make a random image script that is executed on the server side and the normal html is outputted. Id write something but I don't use php. I use asp.net
Copy linkTweet thisAlerts:
@DanteAlighieriauthorNov 28.2003 — Ok! Thanks for your help! I will take my thread to the php forum. I am sure someone can help with the script there! But now I at least now what to do!?
Copy linkTweet thisAlerts:
@96turnerriNov 28.2003 — thats what i was going to suggest posting in the php forum, gl on that, you welcome for the help
×

Success!

Help @DanteAlighieri spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.11,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...