Help - Search - Members - Calendar
Full Version: Masking link to comments .cgi file
Movable Type Community Forum > Additional Resources > Tips and Tricks
LanceHeath
Sorry, but I am unfamiliar with javascript.  I have seen in other blogs where when I hover over the link to add a comment something like (java script:opencomments) appears rather than the path to your mt-addcomments.cgi file.

What code can I put and where to add this to my site so the actual link doesn't appear?

Thank you
girlie
In my main index (and other templates where I have links to comments), I have this:

CODE
<a href="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTEntryID$>" o-n-M-ouseOver="self.status='comments';return true" o-n-M-ouseOut="self.status='';return true" o-n-click="OpenComments(this.href); return false">comments (<$MTEntryCommentCount$>)</a>


smile.gif

Criminy, the board is eating the code. Take out the hyphens in the middle of "on Mouse Over", "on Mouse Out", and "on click".

####, I posted that code somewhere else around here recently and didn't even notice that it probably didn't render properly. I wonder where it's at.  huh.gif
LanceHeath
Thanks girlie, worked wonderfully!   biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.