Article View: comp.lang.javascript
Article #39Re: Mac - PC script
From: Christian
Date: Sat, 19 Dec 1998 00:00
Date: Sat, 19 Dec 1998 00:00
23 lines
1533 bytes
1533 bytes
Zorro wrote:
> Is it possible to write a script that checks if the user uses a Mac or a PC,
> and then load the according image?
>
> I have a website layout with three images per page. I want to keep the
> layout, but for each image i want the script to check for the computer used,
> and then put the right image on it's place.
>
> I know how it's done with a simple script, but this script redirects to
> another page.
replace 'parent.whatever.location.href='macofpc.html' with a
'document.write('<IMG SRC="whatever.gif" ');
> You'll have to build two pages, one for the PC version, one
> for the Mac. I want to do it in the page, for each image seperate.
>
> Thanx very much for your help.
>
> Please reply via e-mail
Technical Details
Message-ID:
<367BBB05.362A8129@schadenfreude.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<75g3gj$mbr$1@news0.skynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb3cb,92b42401de2464ae X-Google-Attributes: gidfb3cb,public X-Google-Thread: f4ad3,92b42401de2464ae X-Google-Attributes: gidf4ad3,public X-Google-Thread: 10b08a,92b42401de2464ae X-Google-Attributes: gid10b08a,public From: Christian <christian@schadenfreude.org> Subject: Re: Mac - PC script Date: 1998/12/19 Message-ID: <367BBB05.362A8129@schadenfreude.org> X-Deja-AN: 423927222 Content-Transfer-Encoding: 7bit References: <75g3gj$mbr$1@news0.skynet.be> Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Organization: none whatsoever Mime-Version: 1.0 Reply-To: christian@schadenfreude.org Newsgroups: comp.lang.javascript,be.comp.internet,nl.internet.www.ontwerp