MyBB Community Forums

Full Version: SHr boomarks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I see this in the header of forums encodeURIComponent(location.href)

but i dont understand what this code is is it jquery or something becuase i have no idea the mad way its formatted can some please tell me the follow
1, what coding this is i know the html bits i mean the encode lines and such
2, tell me whats broken so i can fix it thanks

Quote:<div class='shr-bookmarks' >
<script>

function fbs_click()
{
u=location.href;
t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t)),' sharer', 'toolbar=0, status=0, width=626, height=436');
return false;
}

</script>

<div class="sharing-menu">
<ul class='socials' style="margin: auto auto;">
<li class='shr-facebook'><a href="location.href" onclick="return fbs_click();"/></a></li>
<script>
function twitt_click()
{
u=location.href;
t=document.title;
window.open('http://twitthis.com/twit?url='+encodeURIComponent(u)+'&t='+encodeURIComponent(t));
return false;
}
</script>
<li class='shr-twitter'><a onclick="return twitt_click()"/></a></li>

<li
class='shr-delicious'><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-digg'><a href="http://digg.com/submit" onclick="window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&topic=playable_web_games&title='+encodeURIComponent(document.title), 'digg','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-googlebuzz'><a onclick="window.open('http://www.google.com/reader/link?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'google buzz','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-reddit'><a href="http://reddit.com/submit" onclick="window.location = 'http://reddit.com/submit?url=' + encodeURIComponent(window.location); return false"></a></li>

<li
class='shr-stumbleupon'><a onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'stumbleupon','toolbar=no,width=550,height=550'); return false;"></a></li>

encodeURIComponent(location.href)
</script>
</li>

<li
class='shr-mixx'><a href="http://www.mixx.com/submit?page_url=" onclick="window.open('http://www.mixx.com/submit?page_url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'mixx','toolbar=no,width=550,height=550'); return false;"></a></li>

</ul></div>
</div>
[/php]
bump help still needed here
this code is used to share content into social bookmarking web sites ..
.
the problem with loading the template...is with loading time to image for each social book marking web sites icons