 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Jul 30, 2005 11:01 pm Post subject: newbie question |
|
|
Hi all'
can any of you bright sparkes help me out ?
I've been trying to detect the screen resolution and set a java script
variable accordingly to display absolute position mouseover buttons to
scroll a html page rather than the windows vertical scrollbar (which i cant
change the shape of) the only thing stopping me is dispaying them at the
right height when displayed in 800x600 and 1024x768
The code below tries to do this but for some reason the voffset always seems
to be 230 no matter how i phrase it
Please help it's driving me mad
Ricky Doo
sh=(screen.height) // setup variable
{alert(sh)} // prompt screen height
if (sh=600)
{Voffset=230} //distance of static arrows from bottom
else
if (sh=768)
{Voffset=440} //distance of static arrows from bottom
|
|
| Back to top |
|
 |
Jasen Betts Guest
|
Posted: Tue Aug 02, 2005 10:37 am Post subject: Re: newbie question |
|
|
In article <42ec06d5$1_1 (AT) mk-nntp-2 (DOT) news.uk.tiscali.com>, <marquee274 (AT) tiscali (DOT) co.uk> wrote:
| Quote: | {alert(sh)} // prompt screen height
if (sh=600)
|
should be
if(sh==600)
some people write it
if(600==sh)
that way you get an error messasge if you have debugging turned on....
| Quote: | {Voffset=230} //distance of static arrows from bottom
else
|
what if sh==638, or 480 ... ??
--
Bye.
Jasen
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|