Files
Testing/cmeter/index.php

106 lines
2.9 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<html>
<head>
<script src="/js/XMLHttpRequest_min.js" type="text/javascript"></script>
<script src="cmeter.js" type="text/javascript"></script>
<style>
#meter-wrap{
position:relative;
height:542px;
width:200px;
}
#meter-wrap a{
text-decoration:none;
position:absolute;
width:200px;
height:542px;
top:0px;
left:0px;
display:block;
padding:0 0 0 0;
margin:0 0 0 0;
}
#meter-wrap img{
display:block;
padding:0 0 0 0;
margin:0 0 0 0;
width:200px;
height:542px;
}
#bm-total-since{
position:absolute;
top:28px;
left:46px;
height:24px;
width:140px;
color:#fff;
line-height:24px;
font-size:12px;
font-weight:bold;
margin:0 0 0 0;
padding:0 0 0 0;
}
#bm-cclicks
{
text-align:right;
position:absolute;
top:65px;
left:12px;
height:52px;
width:158px;
color:#fff;
line-height:52px;
font-size:30px;
font-family:arial;
margin:0 0 0 0;
padding:0 0 0 0;
}
</style>
<script>
var soundfile="";
var pstimer="";
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
function callToActionscript(str) {getFlashMovie("flash_control").sendsonginfo(str);soundfile="";}
function loadsoundfile(){callToActionscript(soundfile);clearTimeout(pstimer);}
</script>
</head>
<body>
<div id="meter-wrap">
<a href="#" onclick="getmeter(0);">
<img src="meter2.jpg" id="canime" /></a>
<div id="bm-total-since">TOTAL SINCE 4.30.2012</div>
<div id="bm-cclicks" style="">&nbsp;</div>
</div>
<div id="flashcontainer"></div>
<script>
var soundfile="";
var pstimer="";
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
function callToActionscript(str) {getFlashMovie("flash_control").sendsonginfo(str);soundfile="";}
function loadsoundfile(){callToActionscript(soundfile);clearTimeout(pstimer);}
isIE = navigator.appName.indexOf("Microsoft") != -1;
if(!isIE)
{
document.getElementById("flashcontainer").innerHTML="<object type=\"application/x-shockwave-flash\" id=\"flash_control\" data=\"/flash/control.swf\" width=\"1\" height=\"1\"><param name=\"movie\" value=\"/flash/control.swf\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"allowfullscreen\" value=\"true\" /><param name=\"scale\" value=\"noborder\" /></object>";
}
else
{
document.getElementById("flashcontainer").innerHTML="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"1\" height=\"1\" id=\"flash_control\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\"/flash/control.swf\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"allowfullscreen\" value=\"true\" /><param name=\"scale\" value=\"noborder\" /></object>";
}
</script>
<script type="text/javascript">getmeter(1);</script>
</body>
</html>