In Portal Using JS Object SemTagSvcPortal developers can now register their service. All they have to ensure is that their js script gets loaded before window.onLoad.
Steps are
1. Write a JS file in following format.
var YourObjectName ={
callbackFunc: function( ) {
var relevantObjects = this;
now do what is required for each node.
}
}
Add Following line at the end of your JS
SemTagSvcPortal.registerService({"id":"yourhandlerid" Use com.ibm..yourhandlerid to make this unique,"test" :"","callback": YourObjectName.callbackFunc,"classnames":[your selector detail for node e.g if you want to work on nodes which have class camMenuAction then ".camMenuAction" ]} );
LOF uses CSS Selectors.
Above is applicable for Portal 8001 Fix pack release.
Once JS is written. Add this to a module and include the module in your profile which You will have apply to your page. If module is new then after these steps you will have to restart the Portal.