Hi, I've just tested the following lines an it works in pmapper 4.1.1:
/** * Tool link elements */ PM.linksDefault = { containerid:'toolLinkContainer', links: [ {linkid:'link', name:'Link', run:'PM.UI.showMapLink', imgsrc:'link-w.png'}, {linkid:'print', name:'Print', run:'PM.Dlg.openPrint', imgsrc:'print-w.png'}, {linkid:'download', name:'Download', run:'PM.Dlg.openDownload', imgsrc:'download-w.png'}, {linkid:'mywebpage', name:'Mywebpage', run:'http://www.example.com/',imgsrc:'external-c.png'}, {linkid:'help', name:'Help', run:'PM.Dlg.openHelp', imgsrc:'help-w.png'} //{linkid:'layers', name:'Layers', run:'PM.Plugin.Layerselect.openDlg', imgsrc:'layers-bw.png'} ] }; Do you seen the link? Does it works? Thomas Le 21/11/2010 10:49, Sypou a écrit : > Hi all, > > I use p-mapper 4 > > I would like to know how to create an external link on the menu top left > like help, download, ... > > What I have done is that I added a new tool link element in js_config.php > > /** > * Tool link elements > */ > PM.linksDefault = { > containerid:'toolLinkContainer', > links: [ > > {linkid:'mywebpage', name:'Mywebpage', > run:'http://www.example.com/', > imgsrc:'external-c.png'}, > ... > > I already tried to add: target:'_blank' but nothing... > > Thank you for your help, > > Serge > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users