6 Replies - 2745 Views - Last Post: 05 March 2003 - 08:54 PM

#1 Acid Reign  Icon User is offline

  • Touched by his noodly appendage

Reputation: 2
  • View blog
  • Posts: 2,123
  • Joined: 11-November 02

Oh Almighty Javascript Gurus

Posted 03 March 2003 - 06:49 PM

Ok. I'm working on the layout for the remake of Anti.Focus, and i want it to be cross-resolution compatible.

I have the background as a set of small 2px high lines repeating Y, with an image seperating the right bar where i want it to. Now, i don't want the box to look like it's running over the edge of the page and never ending, so i made a little picture that closed the boxes in the right spots.

i'm looking for someone to do me a favour, if it's not to trouble (let alone possible) to detect a users resolution, and place the image where i want it. for example: if it's 800x600, then place the image at "top:796px; left:0;" so on, so fourth.

If it's not possible, or you don't want to do the code for me, could you give me any suggestions as to how to go about it?

http://www21.brinkst...reign/index.htm <theres the page, you'll see what i mean. i think...

Is This A Good Question/Topic? 0
  • +

Replies To: Oh Almighty Javascript Gurus

#2 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Oh Almighty Javascript Gurus

Posted 04 March 2003 - 12:46 AM

document.body.clientWidth
document.body.clientHeight
Was This Post Helpful? 0
  • +
  • -

#3 Acid Reign  Icon User is offline

  • Touched by his noodly appendage

Reputation: 2
  • View blog
  • Posts: 2,123
  • Joined: 11-November 02

Re: Oh Almighty Javascript Gurus

Posted 04 March 2003 - 04:36 PM

:(
ehh.. I don't actually know javascript, so that makes no sense to me, sorry =\
Was This Post Helpful? 0
  • +
  • -

#4 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Oh Almighty Javascript Gurus

Posted 05 March 2003 - 08:47 AM

What exactly are you trying to do then?
Was This Post Helpful? 0
  • +
  • -

#5 klewlis  Icon User is offline

  • cur tu me vexas?

Reputation: 8
  • View blog
  • Posts: 1,723
  • Joined: 09-November 01

Re: Oh Almighty Javascript Gurus

Posted 05 March 2003 - 10:38 AM

hey,

what i would do is use separate stylesheets to do your positioning, and just use the detect script to determine which stylesheet to use. you can find free detection scripts on the web... i'd send you one but mine are browser based instead of resolution based, so they won't help you. just google for "javascript detect resolution" and something will come up. :)
Was This Post Helpful? 0
  • +
  • -

#6 Acid Reign  Icon User is offline

  • Touched by his noodly appendage

Reputation: 2
  • View blog
  • Posts: 2,123
  • Joined: 11-November 02

Re: Oh Almighty Javascript Gurus

Posted 05 March 2003 - 05:19 PM

great plan! thanks :D
Was This Post Helpful? 0
  • +
  • -

#7 Acid Reign  Icon User is offline

  • Touched by his noodly appendage

Reputation: 2
  • View blog
  • Posts: 2,123
  • Joined: 11-November 02

Re: Oh Almighty Javascript Gurus

Posted 05 March 2003 - 08:54 PM

Ok, well. i gave up. I made a practical decision and just scrapped the whole javascript idea.

instead of making the background the unending lines, i just made an 2x800px bar and put it where I needed it. It's minisculely small, so it wont do crap to my site download speed. NOW! as for all those other images..

<<

>>

<<

>>

hee... I'll fix them!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1