Closed Thread Icon

Preserved Topic: screen.height Pages that link to <a href="https://ozoneasylum.com/backlink?for=17948" title="Pages that link to Preserved Topic: screen.height" rel="nofollow" >Preserved Topic: screen.height\

 
Author Thread
la'dsasha
Neurotic (0) Inmate
Newly admitted
posted posted 05-05-2001 23:16

i know that php wont detect screen.height, but i know that javascript can. ive been trying to find an already made script, but i dont even know how to start asking a search engine for what i want to do...

what i need is to have table height="screen.height - 250", but i also need a noscript option to set my table height=60%.

------
this rose has a thorn...

Hew
Neurotic (0) Inmate
Newly admitted
posted posted 05-06-2001 03:00

Im not quite sure I know what you want but I think it is something like this:

<noscript><table height="60%"></noscript>
<script>
document.write('<table height='+screen.height-250+'>');
</script>

<tr><td ... rest of table html ..>

</table>

I think that is what you want , or I hope it helps in some way.

icklepix

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-06-2001 05:49

There's one issue here and that's that you shouldn't use screen dimensions to set table height. You should use browser's inner dimensions instead. Also, you should add some JS to handle browser window resizing...

BTW Instead of using tables, why don't you try using layers...

la'dsasha
Neurotic (0) Inmate
Newly admitted
posted posted 05-06-2001 05:50

thanks..

the code you wrote had a small syntax error, though.

instead of document.write('<table height='+screen.height-250+'>');

it should have been document.write('<table height=',screen.height-250,'>');

other than that, it worked. thanks for getting me pointed in the right direction :-)


------
this rose has a thorn...

« BackwardsOnwards »

Show Forum Drop Down Menu