Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2010, 03:24 PM
Takeme360 Takeme360 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 29
Downloads: 0
Uploads: 0
Default AddTHIS Button Javascript

Hey Guys,
I know you can implement javascript into FPP, but is it possible to embed the "AddThis" button?

Here's the code:

<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;username=takeme360"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=takeme360"></script>
<!-- AddThis Button END -->


Cheers,
Josh
Reply With Quote
  #2  
Old 09-28-2010, 06:47 PM
sachagriffin sachagriffin is offline
Senior Member
 
Join Date: Oct 2007
Posts: 211
Downloads: 1
Uploads: 0
Default

What is the js supposed to do? Probably just trying to get the url of the current page to add to the standard url for each link.
You can skip all that by just formating each link correctly and use standard buttons with onclicks, no need for a javascript file to do it for you.
Almost certainly the answer is no, because that js won't be able to manipulate a dom that you're not using.
Reply With Quote
  #3  
Old 09-30-2010, 02:01 PM
Takeme360 Takeme360 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 29
Downloads: 0
Uploads: 0
Default

I could use regular onclick functions. However, the AddThis button drops-down to reveal fb, digg, etc icons which link to the corresponding pages. The long way around would be to group all those hotspot images to appear onClick of the AddThis button but just hoping for an easier way.
Reply With Quote
  #4  
Old 10-01-2010, 05:38 PM
sachagriffin sachagriffin is offline
Senior Member
 
Join Date: Oct 2007
Posts: 211
Downloads: 1
Uploads: 0
Default

Yup, thats JavaScript manipulation of page elements.
Flash is a separate thing entirely from html, document object model.
Perhaps if there was a flash version.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:00 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.