andalousy
Registered Member
- Sep 2, 2014
- 50
- 5
i got a problem with YT button
i want this button to disappears after clicking
this is all what i have done till now
code
this is the origenal code of YT button
button picture

i can give PP 5$ to any one can make that code works
thanks in advance
skype andalousy47
i want this button to disappears after clicking
this is all what i have done till now
code
HTML:
<head>
<script src="****//apis.google.com/js/platform.js"></script>
<script type="text/javascript">
<!--
function resettoggle() {
var e = document.getElementById('channelid');
e.style.display = 'block';
}
function toggle_visibility(class) {
var e = document.getElementById(class);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>
</head>
<body onLoad="resettoggle()">
<a href="#" onclick="toggle_visibility('channelid');">
<div class="g-ytsubscribe" data-channelid="channelid" data-layout="default" data-count="hidden"></div>
</a>
</body>
this is the origenal code of YT button
HTML:
<script src="****//apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channelid="channelid" data-layout="default" data-count="hidden"></div>
button picture

i can give PP 5$ to any one can make that code works
thanks in advance
skype andalousy47
Last edited: