View Single Post
Old 12-11-2012, 11:04 AM   PM User | #1
leew
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
leew is an unknown quantity at this point
Creating a youtube view countdown

Hi,

I want to create a very simple page that shows a countdown to a video getting a certain number of views.

At the moment I've been building it in wordpress, but ideally I'd like to build it as a html page. This is what I've done in wordpress so far:

I got this code to show the viewcount figure which worked:
<code>[ytviews video="DpwgblBeDz4"]</code>

then this one to try to show the number of views remaining until it gets to 220k which didn't:
<script type="text/javascript">
document.write((220000-(<code>[ytviews video="
DpwgblBeDz4"]</code>)));
</script>

Any help much appreciated! I'm hoping to get some code that will return the number value. Thanks,
leew is offline   Reply With Quote