Author |
ASP/HTML-question |
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
Me and a friend are having some problems with a webpage... We want it to show a message to every guest with lower screen resolution than 1024x768 or whatever it is. It is asp so any help appreciated.
"The distance between insanity and genius is measured only by success." -Eliot Carver |
|
mixin Joined: Jan 26, 2002 Posts: > 500 From: Notts, UK PM, WWW
|
Would probably be done with javascript me thinks.
But designing a website to work primarily on 1024x768 is bad!
The majority of people using the internet use 800x600 resolution, so designing it for bigger than that is making it hard on people!
[edit] http://javascript.internet.com/user-details/resolution-page.html
found a little re-direct thing that might be of some use
[ This Message was edited by: MixiN on 2004-02-25 13:14 ] |
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
Thanks, we have thought so too. That's why we want to show them a message or, ultimatly, autodirect them to another page designed for 800x600. Anyone know how that's done or if we go Mixin's way, know the script. (We're n00bs )
The server supports ASP.
--edit--
Thanks for the page. We're looking into it now.
--edit--
Whopeee! Thanks very much Mixin. With a little modification of the code we got it solved.
________________
"The distance between insanity and genius is measured only by success."
-Eliot Carver
[ This Message was edited by: Universal Exports on 2004-02-25 13:40 ] |
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
Here's another thing . We'd like someone skilled to test the page. He'd better be swedish or at least scandinavian or he wont understand a single thing
Here it is: Bjurssidan. Ni får lov att trycka på "Bäver Productions" för att komma till sidan det hela handlar om.
What we really want an answer to is how to test the screen resolution ( with mixin's code ) without the guest noticing it, or at least to sho a "loading" page while the automatic check runs.
In other words we want an event to start without the guest having to bother.
"The distance between insanity and genius is measured only by success." -Eliot Carver |
mixin Joined: Jan 26, 2002 Posts: > 500 From: Notts, UK PM, WWW
|
To get it to load when the page loads, you you might wanna try this code:
Code:
|
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://www.yoursite.com/640x480";
var url800x600 = "http://www.yoursite.com/800x600";
var url1024x768 = "http://www.yoursite.com/1024x768";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>
</HEAD>
<body onload="redirectpage()">
BLAH!
|
|
I'm still at work, so cant really test to see if it works.
I'll have a look later when i get home to see if it works or not
|
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
We'll try it for you. Thanks mate!
"The distance between insanity and genius is measured only by success." -Eliot Carver |
mixin Joined: Jan 26, 2002 Posts: > 500 From: Notts, UK PM, WWW
|
whats the verdict?
|
Vlammetje Joined: Mar 01, 2003 Posts: > 500 From: Den Haag PM, WWW
|
they're currently looping
|
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
Now I feel lika real n00b...
Next prob ( ):
We want to play a .wav preview of a sound when the guest moves the mouse over the link to the sound. How to do?
(as we're noob's we need a direct link like MixiN's ) |
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
You're too slow guys. We got that solved too.
Now the next:
How do you make a cursor? I know you can make a .cur file in paint but what size should it be? |
mixin Joined: Jan 26, 2002 Posts: > 500 From: Notts, UK PM, WWW
|
noooooooooo
i cant stand custom cursors and embedded music files
|
Vlammetje Joined: Mar 01, 2003 Posts: > 500 From: Den Haag PM, WWW
|
i dun like cursors either....
embedded music has the habit of playing like o..o...o..o..so...o..o..o..le...e..e....e.;.m..mi...ii..o..o..o..o.. especially when I'm dlding some large files at the same time
or they play right through the music I am already playing which provides me with a good reason never to viti the site again
|
mixin Joined: Jan 26, 2002 Posts: > 500 From: Notts, UK PM, WWW
|
plus they have a certain amateuristic appeal...
not that thats a bad thing maybe?
|
Universal Exports Joined: Mar 03, 2003 Posts: > 500 From: Sweden PM, WWW
|
We did it in a very professional way.
Anyway, it's just a short preview, nothing long and nothing big.
The cursor is just a thing we want to try. Do you know how to do it or are you just complaining? |
Jim Joined: Jan 20, 2002 Posts: > 500 From: Belgium PM |
Sorry UE I was on vacation so couldn't reply to your PM
Btw your password is "password" an points to /hometest.htm which does not exist on the server no ?
And for 2202 asp scripts click me |
|