The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

vote popup Problems

View previous topic View next topic Go down

vote popup Problems

Post by Project ecko on November 30th 2010, 4:11 pm

Yo well i still got some problems well what i want with my vote popup if i click on the vote button Here: http://www.project-ecko.org/Vote-PopUp-h4.htm

its going to another website but i want it to stay @ forums i want That if you click on the vote sig that it opens in a new tab
and can some one help me that the popup fades if your clicking on the vote button and that it will give a alert message that says: Thank you for voting!
and that after the message it will go to the portal

if you need to have the code ill pm i dont want it released yet Smile

Project ecko
Forumember

Posts : 62
Reputation : 0
Language : dutch

Back to top Go down

Re: vote popup Problems

Post by Guest on November 30th 2010, 4:17 pm

Replace this part:
Code:
<a onclick="createCookie('MSvote','yes','720');" href="http://www.runelocus.com/toplist/index.php?action=vote&id=96">

With:
Code:
<a onclick="createCookie('MSvote','yes','720');" href="http://www.runelocus.com/toplist/index.php?action=vote&id=96" target="_blank">

I don't know about the others (:

Guest
Guest


Back to top Go down

Re: vote popup Problems

Post by Project ecko on November 30th 2010, 4:19 pm

hehe it works Very Happy but i if click on vote it dont going to portal Sad

i got a vote popup other vote pop up if you click on vote their it will fade away and say thanks for voting!

here is the popup maybe you can use it

Code:
<!-- Vote Popup -->
<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.display = "block";
   }
 
}
 
function hide_vote_popup() {
   createCookie('dsrvote','yes','1440');
fade('vote_popup');
   document.getElementById('vote_popup').style.display = "none";
   document.getElementById('vote_popup').innerHTML = "";
};
var  TimeToFade = 1000.0;
 
function fade(eid)
{
  var element = document.getElementById(eid);
  if(element == null)
    return;
 
  if(element.FadeState == null)
  {
    if(element.style.opacity == null
        || element.style.opacity == ''
        || element.style.opacity == '1')
    {
      element.FadeState = 2;
    }
    else
    {
      element.FadeState = -2;
    }
  }
 
  if(element.FadeState == 1 || element.FadeState == -1)
  {
    element.FadeState = element.FadeState == 1 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
  }
  else
  {
    element.FadeState = element.FadeState == 2 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade;
    setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
  } 
}
function  animateFade(lastTick, eid)

  var curTick = new Date().getTime();
  var elapsedTicks = curTick - lastTick;
 
  var element = document.getElementById(eid);
 
  if(element.FadeTimeLeft <= elapsedTicks)
  {
    element.style.opacity = element.FadeState == 1 ? '1' : '0';
    element.style.filter = 'alpha(opacity = '
        + (element.FadeState == 1 ? '100' : '0') + ')';
    element.FadeState = element.FadeState == 1 ? 2 : -2;
    return;
  }
 
  element.FadeTimeLeft -= elapsedTicks;
  var newOpVal = element.FadeTimeLeft/TimeToFade;
  if(element.FadeState == 1)
    newOpVal = 1 - newOpVal;
 
  element.style.opacity = newOpVal;
  element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';
 
  setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
}
// --></script>
<div id="vote_popup" style="background: transparent url(http://img197.imageshack.us/img197/4172/transa.png) repeat scroll 0% 0%; width: 100%; height: 100%; position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; color: #f0f0f0; font-size: 9px; text-align: center; z-index: 99999; display: none; opacity:0.0; filter:alpha(opacity=0);">
<div style="margin-top: 300px; width: 470px; margin-left: auto; margin-right: auto; display: block; background-color: "><span style="color: white; font-size: medium;"> </span> <span style="color: white; font-size: large;"><strong>
   Vote for Project-Ecko</strong> </span>
<br>
 
<br>
<span style="color: red; font-size: small;"></span> <center>
<p><h1>
<a style="color:red" onclick="createCookie('dsrvote','yes','1440'); fade('vote_popup');" href="vote.html"><img src="http://www.tkoscape.info/voteecko.png" border="0"></a></h1>
 <span onclick="hide_vote_popup();"> <span style="cursor: pointer; font-family: Tahoma; font-size: x-small;"> <span style="font-size: xxsmall;">
Click here if you dont wish to vote.</span> </span> </span></p>
<p><span> <span style="cursor: pointer; font-family: Tahoma; font-size: x-small;"> <span style="font-size: xxsmall;"> <a href="javascript:bookmark('Projeckt Ecko - The ultimate gaming experience', 'http://www.projeckt-ecko.co.nr')">
Bookmark Project Ecko</a>
</span> </span> </span></p>
         </div>
         <span class="botslice"><span></span></span>
      </div>
 
<div class="spacer"></div>
<div class="spacer"></div>
 
 
 
 
 
</body>
</html>

Project ecko
Forumember

Posts : 62
Reputation : 0
Language : dutch

Back to top Go down

Re: vote popup Problems

Post by Guest on November 30th 2010, 4:27 pm

I can't do it sorry :/

Guest
Guest


Back to top Go down

Re: vote popup Problems

Post by Project ecko on November 30th 2010, 4:28 pm

aw ok Very Happy still thanks bro <3

Project ecko
Forumember

Posts : 62
Reputation : 0
Language : dutch

Back to top Go down

Re: vote popup Problems

Post by EgY Ghost on November 30th 2010, 11:34 pm

بالتوفيق ان شاء الله

I love you

EgY Ghost
New Member

Male Posts : 10
Reputation : 0
Language : arabic
Location : Www.Es7ap.Com

http://www.es7ap.com

Back to top Go down

View previous topic View next topic Back to top


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