Announcement

Collapse
No announcement yet.

Problem with Java script for share button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with Java script for share button

    Hello,

    I hope someone can help, we have had a share button on our site now for a few weeks and we have just realised that it is this that is causing our content tree to run slow.

    Does any one have the code that I can wrap the script in so it would not work in actinic preview only on upload? Also when uploaded you hover over the share link it comes up with all the different options (Facebook, MySpace ext.) which is a pain and we would prefer it if they only appear once clicked. Does any one now the coding for this?

    Please find the code I have below


    <!-- AddThis Button BEGIN -->
    <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4b223a6f601a704e"><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" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4b223a6f601a704e"></script>
    <!-- AddThis Button END -->

    Charli

    #2
    Hi Charlotte,

    See Norman's post #75 of this thread: http://community.actinic.com/showthr...t=42205&page=2 for a solution.

    The thread was discussing a slow down of the Actinic software when the AddThis button present.

    Copy of Post #75 Below:
    Originally posted by drounding View Post
    Place this block around all external image and code links:

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" >
    ...EXTERNAL LINKING CODE HERE...
    </actinic:block>
    Darren Guppy
    Golf Tee Warehouse
    Golf Tees and Golf Accessories.

    Comment


      #3
      Regarding the button activation on click rather than hover you could take a look at this webpage: http://www.webupd8.org/2009/03/modif...or-to-pop.html
      I have not tested it myself but sounds like it might do want you are after.
      Darren Guppy
      Golf Tee Warehouse
      Golf Tees and Golf Accessories.

      Comment


        #4
        Look in the Help for how to create a Condition. Then create one like:

        IsPreviewMode == false

        around your lump of AddThis code.

        Here's what you should end up with:
        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20false">
        
        Your stuff here.
        	
        </actinic:block>
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thank you guys I will give this shot….

          Comment

          Working...
          X