Ik heb een javascript waarmee een breedte van een tabel wordt gezet in een variabele onder invloed van de resolutie. Dit is het script:
<script language="JavaScript1.2">
if (screen.width==800)
width = "907"
else if (screen.width==1024)
width = "791"
else if (screen.width==1152)
width = "612"
else
width = "80%"
</script>
Nu wil ik dus dat de tabel die breedte wordt. Dus moet de waarde van de variabele "width" in de tabel.
<table width="<!--waarde variabele-->" border="0" align="center" cellpadding="0" cellspacing="0" background="images/headerkleur.gif">
Alvast bedankt voor jullie antwoord.
<script language="JavaScript1.2">
if (screen.width==800)
width = "907"
else if (screen.width==1024)
width = "791"
else if (screen.width==1152)
width = "612"
else
width = "80%"
</script>
Nu wil ik dus dat de tabel die breedte wordt. Dus moet de waarde van de variabele "width" in de tabel.
<table width="<!--waarde variabele-->" border="0" align="center" cellpadding="0" cellspacing="0" background="images/headerkleur.gif">
Alvast bedankt voor jullie antwoord.