Anchors.htc:
<public:component lightweight="true">
<public:attach event="oncontentready" onevent="ShowIcon()" />
<public:attach event="ondoubleclick" onevent="EditAnchor()" />
<script language="javascript">
var bIsAnchor = this.name.length > 0 && this.getAttribute('href').length == 0 ;
function ShowIcon()
{
if ( bIsAnchor )
{
this.runtimeStyle.height = '1px' ;
this.runtimeStyle.paddingLeft = '16px' ;
this.runtimeStyle.backgroundImage = 'url(' + window.parent.FCKConfig.FullBasePath + 'css/behaviors/anchor.gif)' ;
this.runtimeStyle.backgroundRepeat = 'no-repeat' ;
this.runtimeStyle.cursor = 'hand' ;
}
}
function EditAnchor()
{
if ( bIsAnchor )
alert( this.outerHTML ) ;
}
</script>
</public:component>
Other Postcards Scripts: