M
mhawkins19
Quick question.
I am fighting with desiging a website that will stretch the top image
to accomodate for different screen resolutions.
What I would like to do is check the screen size and then based upon
that use one image or another for a td (table column) background.
I can read the screen size and stope my image name into a variable but
how do I read that variable later on in my html code? Is this possible?
Any insight would be appreciated.
So far I have...
<SCRIPT LANGUAGE="javascript">
if (screen.width == 800)
{topimg="002top_blue_r1_c1.gif"}
if (screen.width == 1024)
{topimg="02top_blue_r1_c1.gif"}
</SCRIPT>
I am fighting with desiging a website that will stretch the top image
to accomodate for different screen resolutions.
What I would like to do is check the screen size and then based upon
that use one image or another for a td (table column) background.
I can read the screen size and stope my image name into a variable but
how do I read that variable later on in my html code? Is this possible?
Any insight would be appreciated.
So far I have...
<SCRIPT LANGUAGE="javascript">
if (screen.width == 800)
{topimg="002top_blue_r1_c1.gif"}
if (screen.width == 1024)
{topimg="02top_blue_r1_c1.gif"}
</SCRIPT>