GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Nov-2003, 00:55
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road

How do you detect resolution & launch an app with Javascript?


Good Evening,

I created a CD presentation in Swish its just like Flash. It has an autorun file, & Im going to add 2 files to cater to different resolutions, 800x600 & 1024x760. What I would like to do is add a javascript that when the viewer puts the CD in, it would autroun and scan the systems resolution settings & launch the appropriate file:

IE: The viewers system is set @ 800x600, he/she puts CD in drive, the 800x600 version of the presentation is launched.


Ive searched around & read up but Im a BIG javascript rookie, how could I do this & could someone suggest a good script to use.


Thank you kindly
  #2  
Old 27-Nov-2003, 02:15
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,060
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
Ok I got you a cool little script that may help you out. Are the file that you want to open EXE's I need to know so that I can fine tune the script. I will also cost you $100 dollars. Just kidding had you scared didn't I. Well let me know about the file type it needs to open.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #3  
Old 27-Nov-2003, 02:46
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road
$100 (DOHHHHHHH!)..... Actually your right the files I want to open are 2 .exe files. 1 for 800x600 resolutions & the other for 1024x760 resolutions. Thanks man
  #4  
Old 27-Nov-2003, 02:50
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,060
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
Ok let me make some changes to the file and I'll post it here as soon as it's done.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #5  
Old 27-Nov-2003, 03:12
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,060
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
I was finishing up the code but the problem will be that some browser will have there security will be set to high and they may not be able to use this. I'm going to research this a little more to see if there is anything that can be done about this.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #6  
Old 27-Nov-2003, 03:25
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road
Sounds good, I cant wait to see it.
  #7  
Old 27-Nov-2003, 03:38
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,060
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
If this program is a Swish program are you sure there exe files? The version I ask is that I'm to use to running IE in IE I can run executables but only in IE it won't work. But it the files you need to open are in a Swish or flash then that would solve the problem. I’m sorry I didn’t think of this sooner.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #8  
Old 27-Nov-2003, 11:00
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road
Hi, Im a bit confused. Im not exactly sure what you mean?
  #9  
Old 27-Nov-2003, 11:09
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,060
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
The file that will be executed from the CD. (Ex. MyFile.something)
is it an .exe or something else? I'm thinking that if you did it with Swish then its .whatever there file extension is.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #10  
Old 27-Nov-2003, 11:36
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road
I can convert it to .exe
If you need to see my file I posted it at: http://uniteddistributorscanada.hypermart.net/ . the file is called "Java intro" & youll also see the files I want to launch there.
 
 

Recent GIDBlogHalfway done! by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
We're looking for JavaScript codes / mini tutorials. JdS Web Design Forum 7 31-Mar-2008 23:25
JavaScript Resolution Redirection Tutorial pcxgamer Web Design Forum 0 01-Dec-2003 11:37
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 09:16
screen resolution zuzupus Web Design Forum 0 29-Jul-2003 02:50
This JavaScript doesn't work on Mozilla. JdS Web Design Forum 8 02-Jul-2003 14:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:38.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.