Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: Hendricius - maaliskuu 13, 2007, 09:07:59 IP

Otsikko: Voting Pop Up for vote Sites... Need some help.
Kirjoitti: Hendricius - maaliskuu 13, 2007, 09:07:59 IP
Hello, I took this code from some website and would like to customize it for my website:

  <body onLoad="onInitialize()">

        <!-- voting functions -->
        <form id="xth" action="http://www.xtremetop100.com/in.php" method="get">
            <input type="hidden" name="site" value="1132198516">
        </form>
        <div id="root" style="position: absolute; height: 245px; #height: 245px; width: 480px; -moz-user-select: none; cursor: default; left: 60px; top: 60px; background-image: url(en/images/background2.gif); border: 1px solid #2C6E8C; visibility: hidden" onselectstart="return false">

            <div id="handle" style="width: 480px; height: 25px; background-image: url(background.gif); font-weight: bold; font-family: Verdana; font-size: 12px; color: #dde5fa; display: table; border-bottom: 1px solid #000000"><div style="display: table-cell; vertical-align: middle; #position: relative; #top: 5px">XtremeTop100 Vote Vote Vote for WoWSexy!!!</div></div>

            <div style="padding: 10px; text-align: left; font-family: Times Roman New; font-size: 18px; color: #FFFFFF">
                <p align="center"><img src="wowlogo.gif"></p><br />
                <b>Help us become #1</b><br>Would you like to vote for WoWsexy?<br /><br /></b>

                <div align="right">
<input type="button" style="width: 70px; height: 25px" onClick="document.getElementById('root').style.visibility = 'hidden'; createCookie('wow_sexy_vote', 1, 12, '.wow-sexy.com'); document.forms['xth'].submit()" value="Yes!">&nbsp;&nbsp;&nbsp;<input type="button" style="width: 70px; height: 25px" onClick="document.getElementById('root').style.visibility = 'hidden'; return false" value="No...">
                </div>
            </div>
        </div>

        <script type="text/javascript">
            Drag.init(document.getElementById("handle"), document.getElementById("root"));
            if (readCookie("wow_sexy_vote") != 1) {
                document.getElementById('root').style.visibility = "visible";
            }
        </script>
        <!-- Voting function end  -->

</body>


The Problem is, that the Pop up Window does not open whenever I put that on my site. :(.

Original URL is: http://wow-sexy.com/

My URL: D3scene.com

Thanks for helping!