Kinda new at this so please have patience.
I created a web page and added Javascript to determine the screenwidth used by the person's browser and set the page's left, top and width properties accordingly.
Works fine but I have a few questions about this logic...
1.) Is this the way to do it or should I have a default page to determine the screenwidth and then forward the user to the appropriate page. Right now it's one page so I don't have to edit multiple pages. If I should use multiple pages what should I call them?
2.) Because of the way I have the Javascript in there my page does not validate when I enter it in the 3WC website. Does this have an impact on my rating for Search Engines?
Here's some code to show you what I mean....
Because I have the work table in there the validater does not recognize it.
Any help would be greatly appreciated.
I created a web page and added Javascript to determine the screenwidth used by the person's browser and set the page's left, top and width properties accordingly.
Works fine but I have a few questions about this logic...
1.) Is this the way to do it or should I have a default page to determine the screenwidth and then forward the user to the appropriate page. Right now it's one page so I don't have to edit multiple pages. If I should use multiple pages what should I call them?
2.) Because of the way I have the Javascript in there my page does not validate when I enter it in the 3WC website. Does this have an impact on my rating for Search Engines?
Here's some code to show you what I mean....
Code:
<!-- Greeting -->
<script type="text/javascript">
if (screen.width <= 800)
{
document.write('<table border="0" cellpadding="18" style="position:absolute; left:50px; top:215px; width:525px">');
}
else if (screen.width >= 1024)
{
document.write('<table border="0" cellpadding="18" style="position:absolute; left:50px; top:215px; width:725px">');
}
</script>
Because I have the work table in there the validater does not recognize it.
Any help would be greatly appreciated.