주소줄이기 샵샵은 ##으로 바꿔주세요 !!
TC에서는
<script src="http://bit.ly/javascript-api.js?version=latest&login=santoky001&apiKey=R_19a682eebe7b6d8b0faeb9ba54899858"></script>
<script>
BitlyCB.shortenResponse = function(data) {
var s = '';
var first_result;
// Results are keyed by longUrl, so we need to grab the first one.
for (var r in data.results) {
first_result = data.results[r]; break;
}
for (var key in first_result) {
if (key == "shortUrl") {location.href="http://twitter.com/?status=[샵샵_article_rep_title_샵샵] - " + first_result[key].toString();}
s += key + ":" + first_result[key].toString() + "\n";
}
}
document.write('<a id="twitr_share" href="#" onclick="BitlyClient.shorten("[샵샵_article_rep_link_샵샵]", "BitlyCB.shortenResponse");">Scrap on Twitter</a>');
</script>
<noscript><a id="twitr_share" href="http://twitter.com/?status=[샵샵_article_rep_title_샵샵]- [샵샵_article_rep_link_샵샵]">Scrap on Twitter</a></noscript>
xe에서는
<script src="http://bit.ly/javascript-api.js?version=latest&login=santoky001&apiKey=R_19a682eebe7b6d8b0faeb9ba54899858"></script>
<script>
BitlyCB.shortenResponse = function(data) {
var s = '';
var first_result;
// Results are keyed by longUrl, so we need to grab the first one.
for (var r in data.results) {
first_result = data.results[r]; break;
}
for (var key in first_result) {
if (key == "shortUrl") {location.href="http://twitter.com/?status={$oDocument->getTitle()} - " + first_result[key].toString();}
s += key + ":" + first_result[key].toString() + "\n";
}
}
document.write('<a id="twitr_share" href="#" onclick="BitlyClient.shorten("{$oDocument->getPermanentUrl()}", "BitlyCB.shortenResponse");">Scrap on Twitter</a>');
</script>
<noscript><a id="twitr_share" href="http://twitter.com/?status={$oDocument->getTitle()} - {$oDocument->getPermanentUrl()}">Scrap on Twitter</a></noscript>