Blog html problem
2013-11-01, 06:52 PM,
#1
any thing i can do to make a code generator on the page?to generate a code randomly everyday and i can embed those code on page.like update version(xxxxxxxxx)

(xxxxx is the code that generated)

thank you
Reply
2013-11-01, 07:45 PM,
(This post was last modified: 2013-11-01, 08:07 PM by Atlantis.)
#2
Yes it's possible with javascript.
Wait a second I will create something for you.

http://jsfiddle.net/Atlantis3/WpJxn/111/

Make sure to include the jQuery library in your html.


[Image: wI9cuAG.png]
Reply
2013-11-01, 10:26 PM,
#3
(2013-11-01, 07:45 PM)Atlantis Wrote: Yes it's possible with javascript.
Wait a second I will create something for you.

/Atlantis3/WpJxn/111/

Make sure to include the jQuery library in your html.

Much obliged!but how i can use this in blogspot?
Reply
2013-11-01, 10:32 PM,
#4
Place the following between the <head> </head> tags in your blogger html file.
Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(function() {
    function count($this){
        var current = parseInt($this.html(), 10);
        $this.html(++current);
        if(current !== $this.data('count')){
            setTimeout(function(){count($this)}, 500); //set this to a higher number to delay the update time//
        }
    }        
  $("span").each(function() {
      $(this).data('count', parseInt($(this).html(), 100)); //set this number to the maximum number you want//
      $(this).html('0');
      count($(this));
  });
});
</script>

And

Code:
Version <span>10</span>
On the place where you want the counter to appear (between the <body> tags)


[Image: wI9cuAG.png]
Reply
2013-11-01, 11:22 PM,
(This post was last modified: 2013-11-01, 11:23 PM by hamsterhell.)
#5
(2013-11-01, 10:32 PM)Atlantis Wrote: Place the following between the <head> </head> tags in your blogger html file.
Code:
<script type="text/javascript" src="/jquery-latest.js"></script>
<script>
$(function() {
    function count($this){
        var current = parseInt($this.html(), 10);
        $this.html(++current);
        if(current !== $this.data('count')){
            setTimeout(function(){count($this)}, 500); //set this to a higher number to delay the update time//
        }
    }        
  $("span").each(function() {
      $(this).data('count', parseInt($(this).html(), 100)); //set this number to the maximum number you want//
      $(this).html('0');
      count($(this));
  });
});
</script>

And

Code:
Version <span>10</span>
On the place where you want the counter to appear (between the <body> tags)


love you so much!Grin

(2013-11-01, 11:22 PM)hamsterhell Wrote:
(2013-11-01, 10:32 PM)Atlantis Wrote: Place the following between the <head> </head> tags in your blogger html file.
Code:
<script type="text/javascript" src="/jquery-latest.js"></script>
<script>
$(function() {
    function count($this){
        var current = parseInt($this.html(), 10);
        $this.html(++current);
        if(current !== $this.data('count')){
            setTimeout(function(){count($this)}, 500); //set this to a higher number to delay the update time//
        }
    }        
  $("span").each(function() {
      $(this).data('count', parseInt($(this).html(), 100)); //set this number to the maximum number you want//
      $(this).html('0');
      count($(this));
  });
});
</script>

And

Code:
Version <span>10</span>
On the place where you want the counter to appear (between the <body> tags)


love you so much!Grin

is it possible to set it automatically change per day?
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [HELP] Big problem! CagelessBrain 1 128 2017-10-08, 03:29 AM
Last Post: HawkEye
  facebook groups problem madeline 6 157 2017-08-31, 11:27 AM
Last Post: omoss20
  Problem with twitter replies traffic akimo10 5 119 2017-08-28, 10:57 PM
Last Post: Danisk
  Cpa + 000webhosting and Namecheap domain problem Denisdeblois 2 170 2017-08-12, 06:32 PM
Last Post: Denisdeblois
  CPAGrip problem confusedtick 5 250 2017-08-08, 09:19 PM
Last Post: YalaYolo




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top