Monday, September 14, 2015

Edit Running Time

Fix Running Time Bar In timer.php

In this post I'll show you how to FIX RUNNING TIME from default into IMAGE like this :


 Step For The Session One :
Go into your public html and find timer.php, specify location in public_html/yourdomain/source/clicking

after you find it, edit the files.

find :



after you find it, edit the variable of :


var timer=<? echo ($timer+1); ?>;

 To  This :

var timer=<? echo ($timer+1); ?>;


then add the new variable named var fulltimer call with echo and set the $timer to + 0, for examle code :

var fulltimer=<? echo ($timer+0); ?>;


it will be look like this after you edit and add the new variable :


Then before the /head tag, add a .highlight:hover the css style :

<style type="text/css">
.highlight:hover
{
cursor: pointer;
background: white;
filter: alpha(opacity=50);
-moz-opacity: 0.5;
-khtml-opacity: 0.5;
}
</style>

After you add the css style, upload the timer and bar background to your public_html/yourdomain/source/clicking.
Then put the div tag code :
  

And finaly we go to the last edit of The Running Time With Bar Image
find a div tag code 

<div id="timer"> Loading</div>

and edit like this :

<div id="timer" img src="clickimages/".$buttons[$rand_keys[$x]].".png> Loading</div>

We've done edit The Script of timer.php

For the next tutorial is how to edit timer.js for running the image bar



No comments:

Post a Comment