216 lines
7.4 KiB
HTML
216 lines
7.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head> <meta name="generator" content="HTML Tidy, see www.w3.org"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <script src="js/jquery-1.8.3.min.js"></script> <script src="js/egg.js"></script> <script src="js/config.js"></script> <style>
|
|
body {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 12px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.topcmm-123flashchat-hammer-wapper-div {
|
|
width: 450px;
|
|
height: 150px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.topcmm-123flashchat-hammer-wapper-div ul {
|
|
width: 450px;
|
|
height: 150px;
|
|
float: left;
|
|
list-style: none;
|
|
}
|
|
|
|
.topcmm-123flashchat-hammer-wapper-div ul li {
|
|
width: 110px;
|
|
height: 150px;
|
|
float: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.topcmm-123flashchat-egg-wapper-div {
|
|
height: 200px;
|
|
margin-left: 111px;
|
|
position: relative;
|
|
width: 300px;
|
|
top: 50px;
|
|
}
|
|
|
|
.topcmm-123flashchat-egg-play-div {
|
|
width: 520px;
|
|
}
|
|
|
|
#tooltip {
|
|
position: absolute;
|
|
background: none repeat scroll 0 0 #FDFAD1;
|
|
border: 1px solid #949899;
|
|
box-shadow: 1px 1px 1px #CACCCE;
|
|
color: #000000;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: red;
|
|
border: 0;
|
|
cursor: hand;
|
|
}
|
|
|
|
.topcomm-123falshchat-close {
|
|
position: relative;
|
|
width: 450px;
|
|
}
|
|
|
|
.topcomm-123falshchat-close img
|
|
{
|
|
padding-left: 400px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.topcmm-123flashchat-time-out {
|
|
position: absolute;
|
|
top: -10px;
|
|
left:175px;
|
|
-webkit-border-radius: 6px;
|
|
-moz-border-radius: 6px;
|
|
border-radius: 6px;
|
|
width: 38px;
|
|
height: 25px;
|
|
background-color: #000000;
|
|
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#273C48), to(#000000) );
|
|
background: -webkit-linear-gradient(#273C48, #000000);
|
|
background: -moz-linear-gradient(#273C48, #000000);
|
|
background: -ms-linear-gradient(#273C48, #000000);
|
|
background: -o-linear-gradient(#273C48, #000000);
|
|
background: linear-gradient(#273C48, #000000);
|
|
z-index: 6;
|
|
font-weight: bold;
|
|
line-height: 25px;
|
|
color: #00FF66;
|
|
text-align: center;
|
|
}
|
|
</style> <script type="text/javascript">
|
|
|
|
function init()
|
|
{
|
|
$("#topcmm-123flashchat-close-icon").mouseover(function(){
|
|
|
|
$("#topcmm-123flashchat-close-icon").attr("src", "img/close-icon.png");
|
|
});
|
|
|
|
$("#topcmm-123flashchat-close-icon").mouseout(function(){
|
|
|
|
$("#topcmm-123flashchat-close-icon").attr("src", "img/close_icon_nor.png");
|
|
});
|
|
|
|
var voteValue;
|
|
var time = 15;
|
|
var enabled = true;
|
|
$(".topcmm-123flashchat-hammer-wapper-div").find("li").click(
|
|
function()
|
|
{
|
|
//if (!enabled) { return; }
|
|
var userClickValue = $(this).find("a").attr("value");
|
|
voteValue = userClickValue;
|
|
if ("1" == window.parent.topcmm.myselfIsGuest())
|
|
{
|
|
window.parent.topcmm.showLoginAndRegisterPanel();
|
|
return;
|
|
}
|
|
if (window.parent.topcmm.getCredits() < parseInt(userClickValue))
|
|
{
|
|
if ("1" == window.parent.topcmm.myselfIsGuest())
|
|
{
|
|
window.parent.topcmm.showLoginAndRegisterPanel();
|
|
}
|
|
else
|
|
{
|
|
window.parent.topcmm.showBuyCredits();
|
|
}
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
|
|
window.parent.topcmm.preUpdateCreditsForSercurity(window.parent.topcmm.getCurrentRoomId(), (parseInt(userClickValue) * -1).toString(), "egg", function(transactionId){
|
|
var param = "un="
|
|
+ window.parent.topcmm.getMyUsername()
|
|
+ "&type=" + voteValue
|
|
+ "&group=" + window.parent.topcmm.getGroup()
|
|
+ "&tid="+transactionId
|
|
+ "&roomid="+window.parent.topcmm.getCurrentRoomId();
|
|
|
|
jQuery.getJSON(
|
|
voteEggURL + "?" + param + "&callback=?",
|
|
function(data)
|
|
{
|
|
$(".topcmm-123flashchat-egg-wapper-div")
|
|
.find("img").attr("src",
|
|
"img/eegg.png");
|
|
enabled = false;
|
|
$(".topcmm-123flashchat-time-out").hide();
|
|
if (data.result == "0")
|
|
{
|
|
window.parent.topcmm.notice(good_luck);
|
|
}
|
|
else
|
|
{
|
|
window.parent.topcmm.notice(bad_luck);
|
|
}
|
|
});
|
|
});
|
|
}
|
|
});
|
|
|
|
function close()
|
|
{
|
|
var le = window.parent.document
|
|
.getElementById("topcmm-123flashchat-warp-egg-id");
|
|
if (le != null)
|
|
{
|
|
le.parentNode.removeChild(le);
|
|
return;
|
|
}
|
|
}
|
|
|
|
$(".topcomm-123falshchat-close").click(function()
|
|
{
|
|
close();
|
|
});
|
|
|
|
function dealyText()
|
|
{
|
|
$(".topcmm-123flashchat-time-out").text(--time);
|
|
if (time == 0)
|
|
{
|
|
clearInterval(sh);
|
|
close();
|
|
}
|
|
}
|
|
var sh = setInterval(dealyText, 1000);
|
|
|
|
$("body").click(function()
|
|
{
|
|
clearInterval(sh);
|
|
if (enabled)
|
|
{
|
|
$(".topcmm-123flashchat-time-out").hide();
|
|
}
|
|
});
|
|
}
|
|
|
|
function loadJS()
|
|
{
|
|
var lange = window.navigator.language;
|
|
var langurl = "lang/lang-" + lange + ".js";
|
|
$.getScript(langurl)
|
|
.done(function(script, textStatus) {
|
|
init();
|
|
})
|
|
.fail(function(jqxhr, settings, exception) {
|
|
$.getScript("lang/lang-en-US.js")
|
|
.done(function(script, textStatus) {
|
|
init();
|
|
});
|
|
});
|
|
}
|
|
</script> </head> <body onload="loadJS();"> <div class="topcmm-123flashchat-egg-play-div"> <div class="topcomm-123falshchat-close"> <h1 class="topcmm-123flashchat-time-out">15</h1> <img src="img/close_icon_nor.png" id="topcmm-123flashchat-close-icon"> </div> <div class="topcmm-123flashchat-egg-wapper-div"> <img src="img/begg.png" style="width: 166px;"> </div> <div class="topcmm-123flashchat-hammer-wapper-div"> <ul> <li><a id="type_100" class="tooltip" rel="need 100 credits to play!" value="100"><img src="img/c1.png"></a></li> <li><a id="type_200" class="tooltip" rel="need 200 credits to play!" value="200"><img src="img/c2.png"></a></li> <li><a id="type_500" class="tooltip" rel="need 500 credits to play!" value="500"><img src="img/c3.png"></a></li> </ul> </div> </div> </body> </html> |