Jual Beli Produk Digital - Cepat, Aman, Dan Terpercaya Sejak 2012 (Ada 70698 Members, 832 Products, 4745 Topic, 13114 Comments)

Cara supaya Fanspage melayang muncul hanya sekali diawal buka web

Dibuat
Login Terakhir 10 Bulan lalu,
Telah Dilihat 2011 Kali
Marfudin Mulyadi Mengatakan : Sultan Account
mohon bantuannya para master, ane buat fanspage untuk web tetapi setiap buka menu lain fanspage nya muncul lagi. bagaimana caranya supaya fanspage muncul hanya sekali saja diawal buka web.

sourcecode nya mohon diperbaiki
<!-- FB melayang tombol close by www.betahbaca.com --!>
<style type='text/css'>
#kotak-facebook {
position:fixed !important;
position:absolute; /* IE6 */
bottom:-1000px;
right:40%;
margin:0px 0px 0px -182px;
width:310px;
height:auto;
padding:16px;
-webkit-box-shadow: 0px 0px 7px #222;
-moz-box-shadow: 0px 0px 7px #222;
box-shadow: 0px 0px 7px #222; background-color:#FFFFFF; font:normal 1em Cambria,Georgia,Serif;
color:#111;
</style>
<script type='text/javascript'>
$(window).bind("load", function() {
// animasikan nilai top saat halaman telah selesai dimuat
$('#kotak-facebook').animate({bottom:"50px"}, 1000);
// hilangkan kotak pesan saat tombol (x) di klik
$('a.close').click(function() {
$(this).parent().fadeOut();
return false;
});
});
</script>
<div id='kotak-facebook'>
<!-- Mulai --!>
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fbetahbaca2&tabs=timeline&width=300&height=300&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="300" height="300" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
<!-- Selesai --!>
<a class='close' href='#'>×</a></div>

Ada 2 Jawaban

PHPMU.COM Support
commented on 19 Feb 2017 22:20:21
Assalam, untuk swarakalibata Ci ya mas? coba seperti ini :
<?php if ($this->uri->segment(1)=='main' OR $this->uri->segment(1)==''){ ?>
	<div id='kotak-facebook'>
	<!-- Mulai --!>
	<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fbetahbaca2&tabs=timeline&width=300&height=300&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="300" height="300" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
	<!-- Selesai --!>
	<a class='close' href='#'>×</a></div>
<?php } ?>
Marfudin Mulyadi
commented on 20 Feb 2017 12:03:30
Terimakasih Mas Robby. MANTAP
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!

Online