Old school Swatch Watches
Home » Article » Xtscript » Cara Membuat News Ticker Ala Xtgem

Cara membuat News Ticker ala XtGem

f_huda19   26 Januari 2016   09:33:19   1 Suka   Favorit

Membuat News Ticker dengan jQuery dan XtScript


jquery news ticker, xtgem, xtblog, xtscript

Halo semua..!!! Berjumpa kembali bersama Admin di blog kesayangan kita, dimana lagi kalau bukan Cyber4rt.wapsite.me. Di kesempatan ini Admin akan memberikan sesuatu yang menarik nih buat kalian, apa tuh? yang pasti seperti pada judul posting di atas dong, hehe..

Walau hanya ngeblog di XtGem tapi gak mau kalah dong sama blog builder lain atau bahkan mungkin sama CMS. Dengan dukungan fitur XtGem yang tidak dimiliki blog builder lain memang benar-benar memanjakan kita dalam mendesain blog sekeren mungkin.

News Ticker atau orang sering menyebutnya dengan Headline News atau Flash News atau Breaking News dll memang menarik untuk di perhatikan, selain keren juga dapat membuat blog kita seperti situs berita profesional. Tapi apakah bisa blog XtGem dipasang kayak gituan? bisa kok. Nih Admin akan ceritakan bagaimana cara membuat News Ticker ala XtGem step by step.

Disini Admin mengambil daftar blognya menggunakan <xt:feed />. Jika kalian tidak suka bisa menggunakan fungsi XtBlog yang sudah dimodifikasi atau dengan Ajax juga tidak apa-apa. Menggunakan <xt:feed /> bukan tanpa masalah, problem pertama adalah <xt:feed /> tidak mengijinkan url kita sendiri. Bisa kita akali dengan menggenerate alamat RSS FEED kita menggunakan Feed Burner, mau tau bagaimana caranya? cari dulu di Google.

Masalah pertama sudah terpecahkan, ternyata setelah kita lihat Source Code <xt:feed /> terdapat elemen <br> di setiap akhir baris. Bagian yang tidak berguna ini akan mengganggu mesin News Ticker jika tidak di hilangkan. Untuk memecahkan masalah tersebut berarti kita memerlukan XtScript sebagai solusinya. Seperti kode dibawah ini.

<div class="ticker-container">
<div class="ticker-caption">
<p>Breaking News</p>
</div>
<ul>
<!--parser:xtscript-->
var $url=http://feeds.feedburner.com/username_feedburner_kamu;
var $template=<div><li><span>.title. – <a href=".link.">Read More</a></span></li></div>;
var $temp=call htmlspecialchars $val=$template;
var $feed=<xt:feed feed="$url" number="5" template="$temp"/>;
var $feed=call br2nl $val=$feed;
print $feed;
<!--/parser:xtscript-->
</ul>
</div>

Dari kode diatas kita telah menyelesaikan kerangka dari News Ticker yang akan kita buat. Jangan lupa untuk mengganti bagian username_feedburner_kamu. Selanjutnya tinggal kamu pasang CSS dan jQuery News Ticker di bagian headtags blog kamu. Link download ada di akhir acara. Cara pasangnya gampang kok, simak langkah-langkah berikut ini.

pasang jQuery library dan jQuery News Ticker plugin.

<script type="text/javascript" src="//code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="ticker.js"></script>

CSS News Ticker juga dibutuhkan loh.

<link rel="stylesheet" type="text/css" href="ticker.css">

Kalau sudah selesai simpan pekerjaan kamu dan lihat apa yang terjadi, jika berhasil selamat! kamu sudah bisa membuat News Ticker sendiri. Horeee.. Selamat yaa.

DEMO DOWNLOAD

KOMENTAR

payday loans

payday loans 21 Mar 18

get a loan with bad credit and no job <a href="https://payday365day.org">payday loans austin tx</a> applying for a loan with bad credit <a href=https://payday365day.org>payday loans birmingham al</a> bad credit installment loan finance companies
credit central loans <a href="https://payday365day.org">unsecured signature loans bad credit</a> loans in virginia <a href=https://payday365day.org>cash advance akron ohio</a> best debt consolidation credit cards
lenders loans <a href="https://payday365day.org">loans for bad credit no fees</a> debt consolidation ohio <a href=https://payday365day.org>payday loans victoria</a> no credit cash loans
direct lender loans bad credit <a href="https://payday365day.org">15 minute payday loans</a> perosnal loans <a href=https://payday365day.org>payday loans fast payout</a> loans for people on disability

payday loans

payday loans 21 Mar 18

loans in florida <a href="https://payday365day.org">payday loans bakersfield ca</a> cash loan <a href=https://payday365day.org>payday loans direct lender only</a> loans for low credit scores
loans for mobile homes with bad credit <a href="https://payday365day.org">fast cash america</a> loan places in houston tx <a href=https://payday365day.org>payday loans mcallen tx</a> subprime personal loan lenders
single mother loans <a href="https://payday365day.org">fair credit personal loans</a> debt consolidation meaning <a href=https://payday365day.org>studen loans</a> credit builder loan
unsecured debt consolidation loan bad credit <a href="https://payday365day.org">same day money loans</a> installment buying definition <a href=https://payday365day.org>loans for no credit</a> best loan companies

payday loans

payday loans 21 Mar 18

loans in athens ga <a href="https://payday365day.org">legit loans for bad credit</a> personal loans nyc <a href=https://payday365day.org>payday loans without fees</a> loans augusta ga
12 month loan <a href="https://payday365day.org">secured loans</a> loans for 500 credit score <a href=https://payday365day.org>cash usa loans</a> easy approval personal loans
getting loans with bad credit <a href="https://payday365day.org">loan short term</a> ohio installment loans <a href=https://payday365day.org>direct deposit loans same day</a> get a cash loan
self employed loans no proof income <a href="https://payday365day.org">paydayloans lenders</a> how to get a loan with no credit <a href=https://payday365day.org>bad credit personal loans</a> instalment loans

payday loans

payday loans 21 Mar 18

loan payments <a href="https://payday365day.org">quick personal loans bad credit</a> personal loans to rebuild credit <a href=https://payday365day.org>bad credit secured personal loans</a> loans you don t have to pay back
installment loans rock hill sc <a href="https://payday365day.org">payday loans in memphis tn</a> loan processing <a href=https://payday365day.org>first cash advance hours</a> loans for debt consolidation with bad credit
personal loans houston tx <a href="https://payday365day.org">payday loans oshawa</a> refinance a loan <a href=https://payday365day.org>money in advance</a> what is installment loan
bank loans online <a href="https://payday365day.org">pay day advance</a> loans for single mothers with bad credit <a href=https://payday365day.org>fixed rate loans</a> bad credit debt consolidation loan

payday loans

payday loans 22 Mar 18

quick personal loans bad credit <a href="https://payday365day.org">legitimate online payday loans</a> get approved for a loan with bad credit <a href=https://payday365day.org>payday loans barrie</a> loans san marcos tx
personal loans hawaii <a href="https://payday365day.org">loan 5000</a> personal loan lenders <a href=https://payday365day.org>bad credit loans same day</a> easy loans with no job
loans for very poor credit <a href="https://payday365day.org">loan today</a> poor credit installment loan lenders <a href=https://payday365day.org>payday loan bad credit direct lender</a> direct online installment loans
personal loans in el paso tx <a href="https://payday365day.org">no paperwork loans same day</a> 1500 installment loan bad credit <a href=https://payday365day.org>ez payday loans</a> loan source

payday loans

payday loans 22 Mar 18

easy to get installment loans for bad credit <a href="https://payday365day.org">compare personal loan rates</a> personal loans now <a href=https://payday365day.org>loan companies online</a> no job loan
fast cash loans bad credit <a href="https://payday365day.org">payday loans utah</a> loan application register <a href=https://payday365day.org>loan advance</a> bill consolidation loan acceptance
business installment loans <a href="https://payday365day.org">online small loans</a> bill consolidation loans poor credit <a href=https://payday365day.org>pay weekly loans</a> bad credit installment loans direct lenders online
emergency loan bad credit <a href="https://payday365day.org">loans in an hour</a> loans for single moms <a href=https://payday365day.org>cash fast</a> quick cash loans reviews

payday loans

payday loans 22 Mar 18

loan interest rates today <a href="https://payday365day.org">sos loans</a> get a loan <a href=https://payday365day.org>money to loan</a> personal loan interest rates
personal loans lexington ky <a href="https://payday365day.org">signature loans las vegas</a> loans refinance <a href=https://payday365day.org>i need a payday loan</a> personal loan contract
loans for bad credit scores <a href="https://payday365day.org">short term cash advance</a> florida debt consolidation <a href=https://payday365day.org>bad credit personal loans direct lenders</a> i need a 3000 dollar loan
debt consolidation credit cards <a href="https://payday365day.org">cash advance orlando</a> single parent loans <a href=https://payday365day.org>payday loans vancouver b c</a> loans huntsville al

Thozasmom

Thozasmom 23 Mar 18

viagra for 70 year olds
http://rxviagracan.com - viagra for sale without prescription
viagra comparison levitra viagra
<a href="http://rxviagracan.com">generic viagra for sale
</a> - viagra 200mg
how long does viagra take to work

Melvizliday

Melvizliday 23 Mar 18

generic viagra 2 dollar 23 cent
http://gtviagracan.com - viagra for men for sale
viagra buy uk past 6 months
<a href="http://gtviagracan.com">viagra for sale canadian
</a> - viagra side effects last active
prozac compatibility with viagra

JasozCiz

JasozCiz 23 Mar 18

opinion effects of cialis
http://walmartcialis.com - cialis over the counter at walmart
cialis versus cialis
<a href="http://walmartcialis.com">cialis over the counter walmart
</a> - cialis from canada online pharmacy display options
cialis generic canada group messages

Miltoznop

Miltoznop 23 Mar 18

viagra 5mg our newest member
http://glviagragtr.com - viagra for sale cheap
mexico viagra price genuine
<a href="http://glviagragtr.com">viagra pills for sale
</a> - viagra reviews side effects you cannot post new topics in this forum
buy viagra online

RomeztCen

RomeztCen 23 Mar 18

viagra 20mg review total members
http://xlviagragtr.com - viagra for men for sale
viagra 7uk
<a href="http://xlviagragtr.com">viagra for sale
</a> - 5mg viagra generic
viagra 0r viagra

Buy An Essay

Buy An Essay 26 Mar 18

research paper <a href="http://researchpaper.store">high school research paper</a> research paper assignment <a href=http://researchpaper.store>college research paper</a>

Thozasmom

Thozasmom 28 Mar 18

viagra lily
http://rxviagracan.com - viagra for sale
viagra commercial real welcome guest. please login
<a href="http://rxviagracan.com">viagra for sale canadian
</a> - viagra 20mg coupons the team
viagra 5 mg coupon board index

RomeztCen

RomeztCen 29 Mar 18

viagra generic 20 mg it is currently
http://xlviagragtr.com - viagra for sale canadian
viagra and alcohol safe board index
<a href="http://xlviagragtr.com">herb viagra for sale
</a> - viagra black review
purchase viagra online

argument essay

argument essay 02 Apr 18

<a href="https://argumentativeessay365.org/">persuasive writing essays</a> <a href=https://argumentativeessay365.org/>writing arguments</a> <a href="https://argumentativeessay365.org/">argumentative</a> <a href=https://argumentativeessay365.org/>argumentative essay organization</a> <a href=https://argumentativeessay365.org/>best argumentative essays</a> <a href="https://argumentativeessay365.org/">critical essay writing</a> <a href=https://argumentativeessay365.org/>argumentative essay internet</a> <a href="https://argumentativeessay365.org/">position argument essay</a> <a href=https://argumentativeessay365.org/>writing argumentative</a> <a href="https://argumentativeessay365.org/">how to write an argumentative paragraph</a> <a href=https://argumentativeessay365.org/>introduction to argumentative essay</a>

argument essay

argument essay 02 Apr 18

<a href="https://argumentativeessay365.org/">research argument paper</a> <a href="https://argumentativeessay365.org/">the persuasive essay</a> <a href=https://argumentativeessay365.org/>can you use you in a persuasive essay</a> <a href="https://argumentativeessay365.org/">issue essay</a> <a href="https://argumentativeessay365.org/">argumentative essay papers</a> <a href="https://argumentativeessay365.org/">short persuasive essay</a> <a href="https://argumentativeessay365.org/">persuasive writing</a> <a href=https://argumentativeessay365.org/>persuassive essay</a> <a href=https://argumentativeessay365.org/>conclusion for a persuasive essay</a> <a href="https://argumentativeessay365.org/">argumentative conclusion</a> <a href=https://argumentativeessay365.org/>issue essay</a>

argument essay

argument essay 02 Apr 18

<a href="https://argumentativeessay365.org/">research argument paper</a> <a href=https://argumentativeessay365.org/>persuasive essay for kids</a> <a href=https://argumentativeessay365.org/>persusive essay</a> <a href="https://argumentativeessay365.org/">writing a good argumentative essay</a> <a href=https://argumentativeessay365.org/>position argument essay</a> <a href=https://argumentativeessay365.org/>persuasive paper</a> <a href="https://argumentativeessay365.org/">good argument essay</a> <a href=https://argumentativeessay365.org/>essay persuasive</a> <a href="https://argumentativeessay365.org/">persuasive writing introduction</a> <a href="https://argumentativeessay365.org/">persuasive argument essay</a> <a href=https://argumentativeessay365.org/>help essay writing</a>

argument essay

argument essay 03 Apr 18

<a href=https://argumentativeessay365.org/>your argument</a> <a href=https://argumentativeessay365.org/>argumentative research essay</a> <a href=https://argumentativeessay365.org/>persuative essay</a> <a href=https://argumentativeessay365.org/>debate essay</a> <a href=https://argumentativeessay365.org/>writing an argument paper</a> <a href="https://argumentativeessay365.org/">buy argumentative essay</a> <a href=https://argumentativeessay365.org/>introduction to a persuasive essay</a> <a href=https://argumentativeessay365.org/>good argumentative essays</a> <a href=https://argumentativeessay365.org/>persuasive writing pieces</a> <a href="https://argumentativeessay365.org/">admissions essay help</a> <a href="https://argumentativeessay365.org/">persuasive essays</a>

argument essay

argument essay 03 Apr 18

<a href=https://argumentativeessay365.org/>writing a persuasive argument</a> <a href=https://argumentativeessay365.org/>argument papers</a> <a href="https://argumentativeessay365.org/">internet argumentative essay</a> <a href=https://argumentativeessay365.org/>persuasive essays writing</a> <a href="https://argumentativeessay365.org/">argument composition</a> <a href=https://argumentativeessay365.org/>argumentative papers</a> <a href="https://argumentativeessay365.org/">argumentatif essay</a> <a href=https://argumentativeessay365.org/>the persuasive essay</a> <a href=https://argumentativeessay365.org/>argument essay</a> <a href=https://argumentativeessay365.org/>writing the persuasive essay</a> <a href="https://argumentativeessay365.org/">persuasive eassy</a>