|
|
|
ช่วยหน่อยคะเขียนโค้ดแชร์วีดีโอแล้วรูปตัวอย่างไม่ขึ้นอ่ะคะ |
|
|
|
|
|
|
|
Code
<html>
<head>
<meta name="title" content="Levelup Studio Social Share Tips."/>
<meta name="description" content="How to add facebook like button, facebook share, twitter retweet button to your website." />
<link rel="image_src" href="http://heha.levelup.in.th/blog/images/levelup.png" />
<meta name="medium" content="news" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Share</title>
</head>
<body>
<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 710,top = 290');");
}
</script>
<?php
$currentsite = "http://localhost/videoreview/comment.php?id_comment=68";
$twitter_url = "http://twitter.com/share?url=" . $currentsite . "&text=share วีดีโอการท่องเที่ยว " . $currentsite;
$facebook_url = "http://www.facebook.com/sharer.php?u=" . $currentsite;
?>
<a href="javascript:popUp('<?php print urlencode($facebook_url); ?>')"><img src="img/facebook.jpg" alt="facebook"/></a>
<a href="javascript:popUp('<?php print urlencode($twitter_url); ?>')"><img src="img/twitter.jpg" alt="twitter"/></a>
</body>
</html>
Tag : PHP, MySQL, JavaScript
|
|
|
|
|
|
Date :
2013-05-14 09:40:07 |
By :
Ryo |
View :
767 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ประวัติการแก้ไข 2013-05-14 09:42:20
|
|
|
|
Date :
2013-05-14 09:41:30 |
By :
Ryo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|