မိမိ HOME PAGE ကို AUTO SCROLLING လုပ္ခ်င္ရင္ သံုးလို့ရပါတယ္။တခ်ိဳ့က စိတ္အေနွာက္အယွက္ၿဖစ္တယ္လို ့ယူဆသလို တခ်ိဳ့ၾကၿပန္ေတာ့လဲ တမ်ိဳးဆန္း တယ္ထင္ၿပီးသံုးၾကတာေတြ ့ပါတယ္ ။ ၾကိဳက္ေသာသူ ယူေစေသာ္ဝ္ ။
AUTO SCROLLING FOR YOUR MAIN PAGE
FOR BLOGGER ►►► GO DESIGN>>PAGE ELEMENTS >>ADD A GADGET . TAKE HTML/JAVASCRIPT WIDGET AND COPY AND PASTE FOLLOWING CODES .
FOR WORDPRESS ►►► GO ADMIN PANEL>>APPERANCE>>WIDGET . TAKE ONE TEXT WIDGET AND COPY AND PASTE FOLLOWING CODES.
<script type="text/javascript">// <![CDATA[
iPosition = 0; iLength=254; bscroll = true; function switchscroll(atag)
{
bscroll = !bscroll; atag.innerText = bscroll ? 'Autoscroll on/off' : 'Autoscroll on/off'; return false;
}
function scrollinit() // section below initiates the scrolling and continues the scrolling to end of page
{
scrollTo(0, 10000); lyrics_height = document.body.scrollTop+document.body.offsetHeight; scrollTo(0,0);
}
function timer() // section below sets the timer and determines the delay and steps - you can change the values below
{
iPosition++; setTimeout('timer()', 500); progress = (iPosition/iLength)*100; if (iLength > 0)
{
thissec = iPosition/iLength; lastsec = (iPosition-1)/iLength; scrollperc = thissec-lastsec;
if (bscroll) scrollBy(0, (lyrics_height-(document.body.offsetHeight/2))*scrollperc);
}
}
setTimeout('scrollinit()', 50);setTimeout('timer()', 10000);
// ]]></script>
comment ေတြက ဘယ္လိုဂ်ီးတုံးဗ်..
ReplyDeletecomment ဘီဂ်ာ.
ReplyDeletegood one. keep writing! ( :
ReplyDelete