The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How i put my HTML page in index?

2 posters

Go down

How i put my HTML page in index? Empty How i put my HTML page in index?

Post by untilyou February 8th 2010, 7:29 pm

Hello!
I have a code and save it in Html page management. But i want it appear on my index.
Please help me! Very Happy
http://a9hv.forumr.net/html-h2.htm
avatar
untilyou
New Member

Posts : 2
Reputation : 0
Language : Vietnamese, English

Back to top Go down

How i put my HTML page in index? Empty Re: How i put my HTML page in index?

Post by Rok February 9th 2010, 1:12 am

You can place it in your forum's homepage message:
-> Administration Panel
--> Display
---> How i put my HTML page in index? Portail Homepage -- Generalities
----> Insert the script inside the homepage message criteria, and click the 'save' button.
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

How i put my HTML page in index? Empty Re: How i put my HTML page in index?

Post by untilyou February 9th 2010, 6:32 am

I've take your way but nothing matter. You can fix the code if something is going wrong. My version is phpbb3

Code:
<html>
<head>
<style type="text/css">
.float {
        width: 0px;
        height: 200px;

    }

</style>
</head>
<body><div style="width: 100%px;height: 2000px;"><div id="a" class="float"><img src=http://i64.servimg.com/u/f64/12/44/88/02/bg210.png></div><div id="c" class="float"><img src=http://i64.servimg.com/u/f64/12/44/88/02/bg111.png></div>
</div>
</body>
<script type="text/javascript">
function setPosition(id, position) {
          var store = {
                ram : {
                    top : 0,
                    left : 0,
                    right : 0,
                    bottom : 0
                },
                rom : {
                    top : null,
                    left : null,
                    right : null,
                    bottom : null
                }
            };
         
         
            for (var i in position) {store.rom[i] = position[i];}
         
            var element = document.getElementById(id);
         
            for (i in store) {element[i] = store[i];}
         
            element.rom.move = function() {
             
                if (window.innerHeight) {
                    var topPage = window.pageYOffset;
                    var leftPage = window.pageXOffset;
                    var rightPage = leftPage + window.innerWidth - element.offsetWidth;
                    var bottomPage = topPage + window.innerHeight - element.offsetHeight;
                }
                else {
                    var topPage = document.body.scrollTop;
                    var leftPage = document.body.scrollLeft;
                    var rightPage = leftPage + document.body.clientWidth - element.offsetWidth;
                    var bottomPage = topPage + document.body.clientHeight - element.offsetHeight;
                }
             

                element.style.position = "absolute";
             
                if (element.rom.top != null) {
                    element.ram.top += Math.round((topPage + element.rom.top - element.ram.top)/20);
                    element.style.top = element.ram.top;
                }
                if (element.rom.left != null) {
                    element.ram.left += Math.round((leftPage + element.rom.left - element.ram.left)/20);
                    element.style.left = element.ram.left;
                }
                if (element.rom.right != null) {
                    element.ram.right += Math.round((rightPage - element.rom.right - element.ram.right)/20);
                    element.style.left = element.ram.right;
                }
                if (element.rom.bottom != null) {
                    element.ram.bottom += Math.round((bottomPage - element.rom.bottom - element.ram.bottom)/20);
                    element.style.top = element.ram.bottom;
                }
             
                setTimeout("document.getElementById('"+element.id+"').rom.move()",10);
         
            }; 
         
            element.rom.move();
        }
     

        setPosition("a", {top: 20, right: 100});
       
      setPosition("c", {top: 20, left: 0});
             
</script>
</body>
</html>
avatar
untilyou
New Member

Posts : 2
Reputation : 0
Language : Vietnamese, English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum