Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function box($width, $overskrift, $indhold)
- {
- $widthP = $width + 20;
- print"
- <div style=\"width: ".$widthP."px; position: relative; min-height: 200px;\">
- <div style=\"position: absolute; left: 8px; top: -22px;\"><h3>".$overskrift."</h3></div>
- <div style=\"position: absolute; left: 0px; top: 0px; background-image: url('pics/design2/lefttopbox.png'); background-repeat: no-repeat; width: 10px; height: 10px;\"></div>
- <div style=\"position: absolute; left: 10px; right: -10px; top: 0px; background-image: url('pics/design2/topbox.png'); background-repeat: repeat-x; width: ".$width."px; height: 10px;\"></div>
- <div style=\"position: absolute; right: 0px; top: 0px; background-image: url('pics/design2/righttopbox.png'); background-repeat: no-repeat; width: 10px; height: 10px;\"></div>
- <div style=\"position: absolute; left: 0px; top: 10px; bottom: 10px; background-image: url('pics/design2/leftbox.png'); background-repeat: repeat-y; width: 10px;\"></div>
- <div style=\"position: absolute; left: 20px; right: 20px; top: 20px; bottom: 20px;\"><h5>".$indhold."</h5></div>
- <div style=\"position: absolute; right: 0px; top: 10px; bottom: 10px; background-image: url('pics/design2/rightbox.png'); background-repeat: repeat-y; width: 10px;\"></div>
- <div style=\"position: absolute; left: 0px; bottom: 0px; background-image: url('pics/design2/leftbottombox.png'); background-repeat: no-repeat; width: 10px; height: 10px;\"></div>
- <div style=\"position: absolute; left: 10px; right: -10px; bottom: 0px; background-image: url('pics/design2/bottombox.png'); background-repeat: repeat-x; width: ".$width."px; height: 10px;\"></div>
- <div style=\"position: absolute; right: 0px; bottom: 0px; background-image: url('pics/design2/rightbottombox.png'); background-repeat: no-repeat; width: 10px; height: 10px;\"></div>
- </div>
- ";
- }
Advertisement
Add Comment
Please, Sign In to add comment