//The pixel value of where you want the layer to start (from the top) lstart=20
//Set this to false if you just want it to go one time loop=true
//IB: Set the speed her, lower value gives more speed speed=100
//Set this to how many pixels you want it to go for each step, this also changes the speed. pr_step=1
/********************************************************************** You don\'t have to change anything below this **********************************************************************/
//Browsercheck var n = (document.layers) ? 1:0; var ie = (document.all) ? 1:0;
//Object constructor function makeObj(obj,nest){ nest=(!nest) ? \'\':\'document.\'+nest+\'.\' this.css=(n) ? eval(nest+\'document.\'+obj):eval(obj+\'.style\') this.scrollHeight=n?this.css.document.height:eval(obj+\'.offsetHeight\') this.up=goUp this.obj = obj + \"Object\" eval(this.obj + \"=this\") return this } //Makes the layer slide up function goUp(speed){ if(parseInt(this.css.top)>-this.scrollHeight){ this.css.top=parseInt(this.css.top)-pr_step setTimeout(this.obj+\".up(\"+speed+\")\",speed) }else if(loop) { this.css.top=lstart eval(this.obj+\".up(\"+speed+\")\") } } //Calls the object constructor,makes the slide object and starts the sliding. function slideInit(){ oSlide=makeObj(\'divNews\',\'divCont\') oSlide.css.top=lstart oSlide.up(speed)
} //Start the sliding on page load. onload=slideInit
/********************************************************************** If you for some reason would like this to start at a event or something just remove the previous line and place something like: <a href=\"#\" onclick=\"slideInit()\">Slide!</a> in the page. That will make the scroll start when the user clicks ***********************************************************************/ </script>
<body bgcolor=\"#cccc9a\" background=\"../images/bg_main.gif\" onload=\"CSScriptInit();\"> <div id=\"layer\"> <img height=\"149\" width=\"151\" src=\"../images/dame_main.jpg\"></div> <div id=\"layer2\"> <img height=\"56\" width=\"74\" src=\"../images/dame_lille_main.jpg\"></div> <div id=\"layer3\"> <img height=\"91\" width=\"120\" src=\"../images/mand_ani_main.gif\"></div> <div id=\"layer4\"> <img height=\"48\" width=\"121\" src=\"../images/omsorg_main.gif\"></div> <div id=\"divCont\" style=\"position:absolute; width:260; height:200; top:40; left:30; clip:rect(0,260,190,0);\"> <div id=\"divNews\" style=\"position:absolute; top:0; left:0\"> <font face=\"arial\" size=\"2\" class=\"lille1\" color=\"black\"><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> Lorem ipsum dolor sit amet, consectetaur<br> pisicing elit, sed do eiusmod tempor<br> dunt ut labore et dolore magna aliqua.<br> enim ad minim veniam, quis nostrud exerci<br> tion ullamco laboris nisi ut aliquip ex ea<br> modo consequat. Duis aute irure dolor in<br> rehenderit in voluptate velit esse cillum<br> <br> eu fugiat nulla pariatur. Excepteur sint<br> at cupidatat non proident, sunt in culpa qu<br> cia deserunt mollit anim id est laborum. L<br> ipsum dolor sit amet, consectetaur adipis<br> <br> elit, sed do eiusmod tempor incididunt ut la<br> et dolore magna aliqua. Ut enim ad minim v<br> am, quis nostrud exercitation ullamco labor<br> si ut aliquip ex ea commodo consequat. Duis<br> </font></div> </div> </body>
//The pixel value of where you want the layer to start (from the top) lstart=20
//Set this to false if you just want it to go one time loop=true
//IB: Set the speed her, lower value gives more speed speed=100
//Set this to how many pixels you want it to go for each step, this also changes the speed. pr_step=1
/********************************************************************** You don\'t have to change anything below this **********************************************************************/
//Browsercheck var n = (document.layers) ? 1:0; var ie = (document.all) ? 1:0;
//Object constructor function makeObj(obj,nest){ nest=(!nest) ? \'\':\'document.\'+nest+\'.\' this.css=(n) ? eval(nest+\'document.\'+obj):eval(obj+\'.style\') this.scrollHeight=n?this.css.document.height:eval(obj+\'.offsetHeight\') this.up=goUp this.obj = obj + \"Object\" eval(this.obj + \"=this\") return this } //Makes the layer slide up function goUp(speed){ if(parseInt(this.css.top)>-this.scrollHeight){ this.css.top=parseInt(this.css.top)-pr_step setTimeout(this.obj+\".up(\"+speed+\")\",speed) }else if(loop) { this.css.top=lstart eval(this.obj+\".up(\"+speed+\")\") } } //Calls the object constructor,makes the slide object and starts the sliding. function slideInit(){ oSlide=makeObj(\'divNews\',\'divCont\') oSlide.css.top=lstart oSlide.up(speed)
} //Start the sliding on page load. onload=slideInit
/********************************************************************** If you for some reason would like this to start at a event or something just remove the previous line and place something like: <a href=\"#\" onclick=\"slideInit()\">Slide!</a> in the page. That will make the scroll start when the user clicks ***********************************************************************/ </script> <div id=\"layer\"> <img height=\"149\" width=\"151\" src=\"../images/dame_main.jpg\"></div> <div id=\"layer2\"> <img height=\"56\" width=\"74\" src=\"../images/dame_lille_main.jpg\"></div> <div id=\"layer3\"> <img height=\"91\" width=\"120\" src=\"../images/mand_ani_main.gif\"></div> <div id=\"layer4\"> <img height=\"48\" width=\"121\" src=\"../images/omsorg_main.gif\"></div> <div id=\"divCont\" style=\"position:absolute; width:260; height:200; top:40; left:30; clip:rect(0,260,190,0);\"> <div id=\"divNews\" style=\"position:absolute; top:0; left:0\"> <font face=\"arial\" size=\"2\" class=\"lille1\" color=\"black\"><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> Lorem ipsum dolor sit amet, consectetaur<br> pisicing elit, sed do eiusmod tempor<br> dunt ut labore et dolore magna aliqua.<br> enim ad minim veniam, quis nostrud exerci<br> tion ullamco laboris nisi ut aliquip ex ea<br> modo consequat. Duis aute irure dolor in<br> rehenderit in voluptate velit esse cillum<br> <br> eu fugiat nulla pariatur. Excepteur sint<br> at cupidatat non proident, sunt in culpa qu<br> cia deserunt mollit anim id est laborum. L<br> ipsum dolor sit amet, consectetaur adipis<br> <br> elit, sed do eiusmod tempor incididunt ut la<br> et dolore magna aliqua. Ut enim ad minim v<br> am, quis nostrud exercitation ullamco labor<br> si ut aliquip ex ea commodo consequat. Duis<br> </font></div> </div> </body>
//The pixel value of where you want the layer to start (from the top) lstart=20
//Set this to false if you just want it to go one time loop=true
//IB: Set the speed her, lower value gives more speed speed=100
//Set this to how many pixels you want it to go for each step, this also changes the speed. pr_step=1
/********************************************************************** You don\'t have to change anything below this **********************************************************************/
//Browsercheck var n = (document.layers) ? 1:0; var ie = (document.all) ? 1:0;
//Object constructor function makeObj(obj,nest){ nest=(!nest) ? \'\':\'document.\'+nest+\'.\' this.css=(n) ? eval(nest+\'document.\'+obj):eval(obj+\'.style\') this.scrollHeight=n?this.css.document.height:eval(obj+\'.offsetHeight\') this.up=goUp this.obj = obj + \"Object\" eval(this.obj + \"=this\") return this } //Makes the layer slide up function goUp(speed){ if(parseInt(this.css.top)>-this.scrollHeight){ this.css.top=parseInt(this.css.top)-pr_step setTimeout(this.obj+\".up(\"+speed+\")\",speed) }else if(loop) { this.css.top=lstart eval(this.obj+\".up(\"+speed+\")\") } } //Calls the object constructor,makes the slide object and starts the sliding. function slideInit(){ oSlide=makeObj(\'divNews\',\'divCont\') oSlide.css.top=lstart oSlide.up(speed)
} //Start the sliding on page load. onload=slideInit
/********************************************************************** If you for some reason would like this to start at a event or something just remove the previous line and place something like: <a href=\"#\" onclick=\"slideInit()\">Slide!</a> in the page. That will make the scroll start when the user clicks ***********************************************************************/ </script> <div id=\"layer\"> <img height=\"149\" width=\"151\" src=\"images/dame_main.jpg\"></div> <div id=\"layer2\"> <img height=\"56\" width=\"74\" src=\"images/dame_lille_main.jpg\"></div> <div id=\"layer3\"> <img height=\"91\" width=\"120\" src=\"images/mand_ani_main.gif\"></div> <div id=\"layer4\"> <img height=\"48\" width=\"121\" src=\"images/omsorg_main.gif\"></div> <div id=\"divCont\" style=\"position:absolute; width:260; height:200; top:40; left:30; clip:rect(0,260,190,0);\"> <div id=\"divNews\" style=\"position:absolute; top:0; left:0\"> <font face=\"arial\" size=\"2\" class=\"lille1\" color=\"black\"><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> Lorem ipsum dolor sit amet, consectetaur<br> pisicing elit, sed do eiusmod tempor<br> dunt ut labore et dolore magna aliqua.<br> enim ad minim veniam, quis nostrud exerci<br> tion ullamco laboris nisi ut aliquip ex ea<br> modo consequat. Duis aute irure dolor in<br> rehenderit in voluptate velit esse cillum<br> <br> eu fugiat nulla pariatur. Excepteur sint<br> at cupidatat non proident, sunt in culpa qu<br> cia deserunt mollit anim id est laborum. L<br> ipsum dolor sit amet, consectetaur adipis<br> <br> elit, sed do eiusmod tempor incididunt ut la<br> et dolore magna aliqua. Ut enim ad minim v<br> am, quis nostrud exercitation ullamco labor<br> si ut aliquip ex ea commodo consequat. Duis<br> </font></div> </div> </body>
//The pixel value of where you want the layer to start (from the top) lstart=20
//Set this to false if you just want it to go one time loop=true
//IB: Set the speed her, lower value gives more speed speed=100
//Set this to how many pixels you want it to go for each step, this also changes the speed. pr_step=1
/********************************************************************** You don\'t have to change anything below this **********************************************************************/
//Browsercheck var n = (document.layers) ? 1:0; var ie = (document.all) ? 1:0;
//Object constructor function makeObj(obj,nest){ nest=(!nest) ? \'\':\'document.\'+nest+\'.\' this.css=(n) ? eval(nest+\'document.\'+obj):eval(obj+\'.style\') this.scrollHeight=n?this.css.document.height:eval(obj+\'.offsetHeight\') this.up=goUp this.obj = obj + \"Object\" eval(this.obj + \"=this\") return this } //Makes the layer slide up function goUp(speed){ if(parseInt(this.css.top)>-this.scrollHeight){ this.css.top=parseInt(this.css.top)-pr_step setTimeout(this.obj+\".up(\"+speed+\")\",speed) }else if(loop) { this.css.top=lstart eval(this.obj+\".up(\"+speed+\")\") } } //Calls the object constructor,makes the slide object and starts the sliding. function slideInit(){ oSlide=makeObj(\'divNews\',\'divCont\') oSlide.css.top=lstart oSlide.up(speed)
} //Start the sliding on page load. onload=slideInit
/********************************************************************** If you for some reason would like this to start at a event or something just remove the previous line and place something like: <a href=\"#\" onclick=\"slideInit()\">Slide!</a> in the page. That will make the scroll start when the user clicks ***********************************************************************/ </script> <div id=\"layer\"> <img height=\"149\" width=\"151\" src=\"../images/dame_main.jpg\"></div> <div id=\"layer2\"> <img height=\"56\" width=\"74\" src=\"../images/dame_lille_main.jpg\"></div> <div id=\"layer3\"> <img height=\"91\" width=\"120\" src=\"../images/mand_ani_main.gif\"></div> <div id=\"layer4\"> <img height=\"48\" width=\"121\" src=\"../images/omsorg_main.gif\"></div> <div id=\"divCont\" style=\"position:absolute; width:260; height:200; top:40; left:30; clip:rect(0,260,190,0);\"> <div id=\"divNews\" style=\"position:absolute; top:0; left:0\"> <font face=\"arial\" size=\"2\" class=\"lille1\" color=\"black\"><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> Lorem ipsum dolor sit amet, consectetaur<br> pisicing elit, sed do eiusmod tempor<br> dunt ut labore et dolore magna aliqua.<br> enim ad minim veniam, quis nostrud exerci<br> tion ullamco laboris nisi ut aliquip ex ea<br> modo consequat. Duis aute irure dolor in<br> rehenderit in voluptate velit esse cillum<br> <br> eu fugiat nulla pariatur. Excepteur sint<br> at cupidatat non proident, sunt in culpa qu<br> cia deserunt mollit anim id est laborum. L<br> ipsum dolor sit amet, consectetaur adipis<br> <br> elit, sed do eiusmod tempor incididunt ut la<br> et dolore magna aliqua. Ut enim ad minim v<br> am, quis nostrud exercitation ullamco labor<br> si ut aliquip ex ea commodo consequat. Duis<br> </font></div> </div> </body>
</html>
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.