Thread View: comp.lang.javascript
2 messages
2 total messages
Started by Zorro
Sat, 19 Dec 1998 00:00
Mac - PC script
Author: Zorro
Date: Sat, 19 Dec 1998 00:00
Date: Sat, 19 Dec 1998 00:00
14 lines
1349 bytes
1349 bytes
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. 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
Re: Mac - PC script
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads