View Full Version : Quick help
Nosz
October 4th, 2010, 22:14
Alright im not sure if this is site related
but how do u make server check if u voted on runelocus?
_1Greg1_
October 4th, 2010, 22:15
I don't think you can... Tell me if I'm wrong though...
Nosz
October 4th, 2010, 22:16
corruptionX does some how =/
Emily
October 4th, 2010, 22:19
corruptionX does some how =/
Look at there page source, i found something like this, but it doesnt really exactly relate to what you wanted
<div id="bgbtm">
<script type="text/javascript"><!--
function getInternetExplorerVersion()
{
var rv = -1;
if (navigator.appName == 'Microsoft Internet Explorer')
{
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseFloat( RegExp.$1 );
}
return rv;
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function createCookie(name,value,min) {
if (min) {
var date = new Date();
date.setTime(date.getTime()+(min*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
window.onload = function vote_popup() {
var ver = getInternetExplorerVersion();
if(navigator.appName == 'Microsoft Internet Explorer' && ver < 7.0)
{
return;
}
dsrvote = readCookie('dsrvote');
if (dsrvote == null) {
fade('vote_popup');
document.getElementById('vote_popup').style.displa y = "block";
}
}
function hide_vote_popup() {
createCookie('dsrvote','yes','1440');
fade('vote_popup');
document.getElementById('vote_popup').style.displa y = "none";
document.getElementById('vote_popup').innerHTML = "";
};
var TimeToFade = 1000.0;
function fade(eid)
{
var element = document.getElementById(eid);
if(element == null)
return;
Nosz
October 4th, 2010, 22:42
thats what mystic wanted to no if they search for a cookie
Mystic Flow
October 4th, 2010, 22:48
Thanks Emily
Nosz
October 4th, 2010, 22:59
this isnt the right thing nvm >.<
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.