MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides
Reload this Page How to make a pop up vote box disapear after 12 hours
Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
How to make a pop up vote box disapear after 12 hours
(#1)
Old
mastermania's Avatar
mastermania is Offline
Corporal
Rep Power: 2
Reputation: 10
mastermania is on a distinguished road
 
Posts: 18
Join Date: Apr 2007
Wow Guides How to make a pop up vote box disapear after 12 hours - 06-26-2008

In this guide ill show you how to make a vote pop up box disapeer for 12 hours after someone clicks yes. I dont know if this is a repost well here it is.

In the following link youll see a pop up used by a awesome server called Insomnia-Wow located at insomnia-wow.org

Script:
Quote:
<!-- Begin Voting Window Code -->
<script language="JavaScript1.2">

var ns4 = document.layers;
var ie4 = document.all;
var ns6 = document.getElementById && !document.all;

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch = 0;
var nsx;
var nsy;
var nstemp;

function drag_dropns( name )
{
if( !ns4 )
return;
temp = eval( name );
temp.captureEvents( Event.MOUSEDOWN | Event.MOUSEUP );
temp.onmousedown = gons;
temp.onmousemove = dragns;
temp.onmouseup = stopns;
}

function gons( e )
{
temp.captureEvents( Event.MOUSEMOVE );
nsx = e.x;
nsy = e.y;
}

function dragns( e )
{
if( dragswitch == 1 )
{
temp.moveBy( e.x-nsx, e.y-nsy );
return false;
}
}

function stopns()
{
temp.releaseEvents( Event.MOUSEMOVE );
}

//drag drop function for ie4+ and NS6////
/////////////////////////////////


function drag_drop( e )
{
if( ie4 && dragapproved )
{
crossobj.style.left = tempx + event.clientX - offsetx;
crossobj.style.top = tempy + event.clientY - offsety;
return false;
}
else if( ns6 && dragapproved )
{
crossobj.style.left = tempx + e.clientX - offsetx;
crossobj.style.top = tempy + e.clientY - offsety;
return false;
}
}

function initializedrag( e )
{
crossobj = ( ( ns6 ) ? document.getElementById( "showimage" ) : document.all.showimage );

var firedobj = ( ( ns6 ) ? e.target : event.srcElement );
var topelement = ( ( ns6 ) ? "HTML" : "BODY" );

while( ( firedobj.tagName != topelement ) && ( firedobj.id != "dragbar" ) )
{
firedobj=ns6? firedobj.parentNode : firedobj.parentElement;
}

if( firedobj.id == "dragbar" )
{
offsetx = ( ( ie4 ) ? event.clientX : e.clientX );
offsety = ( ( ie4 ) ? event.clientY : e.clientY );

tempx = parseInt( crossobj.style.left );
tempy = parseInt( crossobj.style.top );

dragapproved = true;
document.onmousemove = drag_drop;
}
}

document.onmousedown = initializedrag
document.onmouseup = new Function( "dragapproved=false" );

////drag drop functions end here//////

function hidebox( submit )
{
if( ie4 || ns6 )
crossobj.style.visibility = "hidden";
else if( ns4 )
document.showimage.visibility = "hide";

if( submit == true )
{
var expire = new Date();
expire.setTime( expire.getTime() + 43200000 ); // 43200000 ms = 12 hours
document.cookie = "BWoW_VoteTimer=1;expires="+expire.toLocaleString()+";path=/";
}
}
if( document.cookie.indexOf( "BWoW_VoteTimer=1" ) != -1 )
{
document.write( "<style type="text/css">#showimage{display:none;}</style>" );
}

</script>

<style type="text/css">

#showimage
{
position:absolute;
width:300px;
background-color:#0000FF;
padding:2px;
}

#showimage #dragbar
{
font-family:Trebuchet MS;
color:#FFFFFF;
font-size:10pt;
text-align:left;
font-weight:bold;
width:280px;
}

#showimage #closebutton
{
font-family:Tahoma;
font-weight:bold;
height:12px;
width:12px;
background-color:#CCCCCC;
font-size:8pt;
border:2px solid;
border-top-color:#EEE;
border-right-color:#AAA;
border-bottom-color:#AAA;
border-left-color:#EEE;
padding:0 3px 0 4px;
color:#000;
text-decoration:none;
}

#showimage #message
{
font-family:Trebuchet MS;
color:#FFFFFF;
font-size:10pt;
font-weight:bold;
padding:4px;
background-color:#000000;
}

</style>

<div id="showimage" style="left:500px;top:100px;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="dragbar" style="cursor:hand" title="Drag to Move">
<ilayer width="100%" onSelectStart="return false">
<layer width="100%" onMouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onMouseout="dragswitch=0">

&nbsp;Vote for Insomnia-Wow
</layer>
</ilayer>
</td>
<td style="padding-right:1px;width:20px;" align="right">
<a id="closebutton" href="#" onClick="hidebox();return false">X</a>
</td>
</tr>
<tr>

<td id="message" width="100%" colspan="2" align="center">
<img src="http://i283.photobucket.com/albums/kk301/ProphetsofDeath/logo-1-3.jpg" border="0" alt="Vote!">
<br />
<font size="5">Vote for Insomnia-Wow every 12 hours.</font>
<br />
<br />
Would you like to vote for us to get to #1?!?
<br />
<a href="http://www.xtremetop100.com/in.php?site=1132246093" target="_blank" onClick="hidebox(true)"><img src="http://i184.photobucket.com/albums/x285/Kandyman3/yes.png" border="0"></a>
&nbsp;
<a href="#" onClick="hidebox(false);return false"><img src="http://i184.photobucket.com/albums/x285/Kandyman3/no.png" border="0"></a>
</td>
</tr>
</table>
</div>
At the bottom youll see

<a href="http://www.xtremetop100.com/in.php?site=1132246093" target="_blank" onClick="hidebox(true)"><img src="http://i184.photobucket.com/albums/x285/Kandyman3/yes.png" border="0"></a>
&nbsp;

<a href="#" onClick="hidebox(false);return false"><img src="http://i184.photobucket.com/albums/x285/Kandyman3/no.png" border="0"></a>

The red items where it says hidebox() is where you want to look to make the pop up not disapeer when they click I disagree you need to set it as false so it doesnt if you set it as true it will. The green link is for the accept button the hidebox(true) as you can see is at true so if they click yes the link will disapeer for 12 hours.

Sorry its not very detailed its just a great way not to piss of people this can be used with any pop up box to my knoweledge just find which imgsrc is the accept and make it true and the disagree and make it false if you want them both to never disapeer set both hideboxes as false.


Don't forget to helpfull guides

If you need any assistance feel free to write it below thanks.


Reply With Quote

Donate to remove ads.
(#2)
Old
Scyther's Avatar
Scyther is Offline
Contributor
Rep Power: 2
Reputation: 181
Scyther has a spectacular aura aboutScyther has a spectacular aura about
 
Posts: 779
Join Date: Apr 2008
Location: MY COOKIES!
06-26-2008

Lol very nice mate .


Reply With Quote
O.O
(#3)
Old
Immüñé's Avatar
Immüñé is Offline
Site Donator
Rep Power: 1
Reputation: 9
Immüñé is an unknown quantity at this point
 
Posts: 53
Join Date: Apr 2008
Location: Jinx-WoW Ownage
O.O - 06-26-2008

Ahh this was awsome I used it! Thank you soooo MUCH
Reply With Quote
(#4)
Old
Nick_Da_Maco is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
Nick_Da_Maco is an unknown quantity at this point
 
Posts: 54
Join Date: Jun 2008
06-27-2008

WoW nice one dude....Thanks so much...id giv u rep for it but i have no idea how :S
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342