AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newbie question

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Jul 30, 2005 11:01 pm    Post subject: newbie question Reply with quote



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





PostPosted: Tue Aug 02, 2005 10:37 am    Post subject: Re: newbie question Reply with quote



In article <42ec06d5$1_1 (AT) mk-nntp-2 (DOT) news.uk.tiscali.com>, <marquee274 (AT) tiscali (DOT) co.uk> wrote:
Quote:
Hi all'


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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.