arievanoosten
Gebruiker
- Lid geworden
- 18 aug 2008
- Berichten
- 9
hallo allemaal,
ik heb meerder tabels met de zelfde achtergrond op mijn website. Alleen de tabellen verschillen nog al van groote.. nu wil ik eigenlijk een grote afbeelding en tot de afbeelding krimpt naar de grote van de tabel. ik heb wel een script gevonden dat de achtergrond van de website aanpast. mij is het ook nie gelukt om die om te bouwen.
mijn vraag is weet iemand hoe dat moet of kan iemand dat script ombouwen voor tabellen
script:
<HTML>
<HEAD>
<title></title>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
NS4 = (document.layers);
IE4 = (document.all);
scaleWidth = true;
scaleHeight = true;
imSRC = "http://94.100.113.171/329050001-329100000/329062201-329062300/329062241_2_Ihga.jpeg";
if (NS4) window.onload = setResize;
function setResize(){
setTimeout("window.onresize=reDo;",500);
}
function reDo(){
window.location.reload()
}
if (IE4) window.onresize = reDoIE;
function reDoIE(){
imBG.width = document.body.clientWidth;
imBG.height = document.body.clientHeight;
}
function makeIm() {
winWid = (NS4) ? innerWidth : document.body.clientWidth;
winHgt = (NS4) ? innerHeight : document.body.clientHeight;
imStr = "<DIV ID=elBGim"
+ " STYLE='position:absolute;left:0;top:0;z-index:-1'>"
+ "<IMG NAME='imBG' BORDER=0 SRC=" + imSRC;
if (scaleWidth) imStr += " WIDTH=" + winWid;
if (scaleHeight) imStr += " HEIGHT=" + winHgt;
imStr += "></DIV>";
document.write(imStr);
}
//-->
</SCRIPT>
</HEAD>
<BODY MARGINHEIGHT=400 MARGINWIDTH=0>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
makeIm();
//-->
</SCRIPT>
</body>
</html>
alvast hartelijk bedankt
ik heb meerder tabels met de zelfde achtergrond op mijn website. Alleen de tabellen verschillen nog al van groote.. nu wil ik eigenlijk een grote afbeelding en tot de afbeelding krimpt naar de grote van de tabel. ik heb wel een script gevonden dat de achtergrond van de website aanpast. mij is het ook nie gelukt om die om te bouwen.
mijn vraag is weet iemand hoe dat moet of kan iemand dat script ombouwen voor tabellen
script:
<HTML>
<HEAD>
<title></title>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
NS4 = (document.layers);
IE4 = (document.all);
scaleWidth = true;
scaleHeight = true;
imSRC = "http://94.100.113.171/329050001-329100000/329062201-329062300/329062241_2_Ihga.jpeg";
if (NS4) window.onload = setResize;
function setResize(){
setTimeout("window.onresize=reDo;",500);
}
function reDo(){
window.location.reload()
}
if (IE4) window.onresize = reDoIE;
function reDoIE(){
imBG.width = document.body.clientWidth;
imBG.height = document.body.clientHeight;
}
function makeIm() {
winWid = (NS4) ? innerWidth : document.body.clientWidth;
winHgt = (NS4) ? innerHeight : document.body.clientHeight;
imStr = "<DIV ID=elBGim"
+ " STYLE='position:absolute;left:0;top:0;z-index:-1'>"
+ "<IMG NAME='imBG' BORDER=0 SRC=" + imSRC;
if (scaleWidth) imStr += " WIDTH=" + winWid;
if (scaleHeight) imStr += " HEIGHT=" + winHgt;
imStr += "></DIV>";
document.write(imStr);
}
//-->
</SCRIPT>
</HEAD>
<BODY MARGINHEIGHT=400 MARGINWIDTH=0>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
makeIm();
//-->
</SCRIPT>
</body>
</html>
alvast hartelijk bedankt