Welcome to Esato.com




ASP/HTML-question

Click to view updated thread with images


Posted by Universal Exports
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.


Posted by mixin
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 ]

Posted by Universal Exports
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 ]

Posted by Universal Exports
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.

Posted by mixin
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

Posted by Universal Exports
We'll try it for you. Thanks mate!

Posted by mixin
whats the verdict?

Posted by Vlammetje
they're currently looping

Posted by Universal Exports
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 )

Posted by Universal Exports
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?

Posted by mixin
noooooooooo

i cant stand custom cursors and embedded music files

Posted by Vlammetje
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

Posted by mixin
plus they have a certain amateuristic appeal...

not that thats a bad thing maybe?

Posted by Universal Exports
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?

Posted by Jim
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

Posted by Universal Exports
Nah, that's cool. Saw on valhala that you weren't home...
Anyway, thanks!

Posted by Cycovision
The only way I know to change the cursor is using CSS, but I don't think it allows custom made cursors, only the standard windows ones.

Putting the following into your style definitions would change the cursor to a crosshair whenever it hovers over an element on to which the style has been applied:

.name_of_your_choice {
cursor: crosshair;
}

Where name_of_your_choice is whatever you want to call that particular style definition.


Click to view updated thread with images


© Esato.com - From the Esato mobile phone discussion forum