function Twitter_Share() {
var TwitterTitle
try{
TwitterTitle = document.getElementById("EventName").innerHTML;
}catch (e){
TwitterTitle = document.title;
}
if (TwitterTitle == "" || TwitterTitle == null) {
TwitterTitle = document.title;
}
TwitterTitle = html_entity_decode(TwitterTitle)
TwitterTitle = encodeURIComponent(TwitterTitle)
var ShareURL = "https://twitter.com/intent/tweet?text=" + TwitterTitle + "&url=" + ShareTrackingUrl;
window.open(ShareURL, '_blank', 'width=750, height=400')
}
function Weibo_Share() {
var WeiboTitle;
try{
WeiboTitle = document.getElementById("EventName").innerHTML;
}catch (e){
WeiboTitle = document.title;
}
if (WeiboTitle == "" || WeiboTitle == null) {
WeiboTitle = document.title;
}
WeiboTitle = html_entity_decode(WeiboTitle)
WeiboTitle = encodeURIComponent(WeiboTitle)
var ShareURL = "http://service.weibo.com/share/share.php?url=" + ShareTrackingUrl +"&title=" + WeiboTitle;
window.open(ShareURL, '_blank', 'width=750, height=400')
}
function FB_Share() {
getTrackUrl()
var FBTitle;
var FBDescription;
try{
FBTitle = document.getElementById("EventName").innerHTML;
}
catch (e){
FBTitle = document.title;
}
if (FBTitle == "" || FBTitle == null) {
FBTitle = document.title;
}
try{
FBDescription = $('meta[name=Description]').attr("content");
}catch (e){
FBDescription = "";
}
if (FBDescription == "" || FBDescription == null) {
FBDescription = "";
}
//FBDescription = "";
FBDescription = html_entity_decode(FBDescription)
FBTitle = html_entity_decode(FBTitle)
FBTitle = encodeURIComponent(FBTitle)
FBDescription = encodeURIComponent(FBDescription)
var ShareURL =
"https://www.facebook.com/sharer/sharer.php?s=100&p[title]=" +
FBTitle + "&p[summary]=" + FBDescription + "&p[url]=" +
ShareTrackingUrl +
"&p[images][0]=http://www.oracleimg.com/us/dm/fb-share-304843.jpg&"
window.open(ShareURL, '_blank', 'width=750, height=400')
}
function Linkedin_Share() {
var LinkedinTitle;
var LinkedinDescription;
try {
LinkedinTitle = document.getElementById("EventName").innerHTML;
}
catch (e) {
LinkedinTitle = document.title;
}
if (LinkedinTitle == "" || LinkedinTitle == null) {
LinkedinTitle = document.title;
}
try{
LinkedinDescription = $('meta[name=Description]').attr("content");
}
catch (e){
LinkedinDescription = "";
}
if (LinkedinDescription == "" || LinkedinDescription == null) {
LinkedinDescription = "";
}
//LinkedinDescription = "";
LinkedinDescription = html_entity_decode(LinkedinDescription)
LinkedinTitle = html_entity_decode(LinkedinTitle)
LinkedinTitle = encodeURIComponent(LinkedinTitle)
LinkedinDescription = encodeURIComponent(LinkedinDescription)
var ShareURL =
"http://www.linkedin.com/shareArticle?mini=true&url=" +
ShareTrackingUrl + "&title=" + LinkedinTitle + "&summary=" +
LinkedinDescription ;
window.open(ShareURL, '_blank', 'width=750, height=400')
}
function Mail_Share() {
var MailTitle;
try {
MailTitle = document.getElementById("EventName").innerHTML;
}
catch (e) {
MailTitle = document.title;
}
if (MailTitle == "" || MailTitle == null) {
MailTitle = document.title;
}
MailTitle = MailTitle.replace(/&/g, "%26");
mail_str = "mailto:?subject=Thought this might interest you: " + MailTitle;
mail_str += "&body=I thought you might be interested in this: " + MailTitle;
mail_str += ". %0A%0AYou can view it at, " + ShareTrackingUrl;
mail_str = mail_str.replace(/%26amp;/g, "%26");
location.href = mail_str;
}
http://eventreg.oracle.com/profile/web/index.cfm?PKWebId=0x9235b9f5
No comments:
Post a Comment